{"openapi":"3.1.0","info":{"title":"proofs.rs API","description":"Public API. Session writes require the application's Origin and X-CSRF-Token from GET /api/v1/me, plus current terms acceptance. Bearer tokens have the publish scope; only operations listing bearer security accept them. Pagination returns an opaque next_cursor. Administrative APIs are not part of this definition.","version":"1"},"servers":[{"url":"/"}],"components":{"securitySchemes":{"bearer":{"type":"http","scheme":"bearer"},"session":{"type":"apiKey","in":"cookie","name":"__Host-proofsr_session","description":"Browser session. Local HTTP uses proofsr_session."},"csrf":{"type":"apiKey","in":"header","name":"X-CSRF-Token"},"signup":{"type":"apiKey","in":"cookie","name":"__Host-proofsr_signup","description":"Pending signup cookie. Local HTTP uses proofsr_signup."}},"schemas":{"Error":{"type":"object","properties":{"error":{"type":"string"},"message":{"type":"string"},"request_id":{"type":"string"}},"required":["error"]},"Sarif":{"type":"object","properties":{"version":{"type":"string","const":"2.1.0"},"runs":{"minItems":1,"maxItems":1,"type":"array","items":{"type":"object","properties":{"automationDetails":{"type":"object","properties":{"guid":{"type":"string","pattern":"^[a-f0-9]{8}(-[a-f0-9]{4}){3}-[a-f0-9]{12}$"}},"required":["guid"],"additionalProperties":{}},"tool":{"type":"object","properties":{"driver":{"type":"object","properties":{"name":{"type":"string","minLength":1},"version":{"type":"string"}},"required":["name","version"],"additionalProperties":{}}},"required":["driver"],"additionalProperties":{}},"versionControlProvenance":{"minItems":1,"maxItems":1,"type":"array","items":{"type":"object","properties":{"repositoryUri":{"type":"string","pattern":"^https:\\/\\/github\\.com\\/[A-Za-z0-9_.-]+\\/[A-Za-z0-9_.-]+$"},"revisionId":{"type":"string","pattern":"^[a-f0-9]{40}$"}},"required":["repositoryUri","revisionId"],"additionalProperties":{}}},"invocations":{"minItems":1,"maxItems":1,"type":"array","items":{"type":"object","properties":{"executableLocation":{"type":"object","properties":{"uri":{"type":"string","minLength":1,"maxLength":4000}},"required":["uri"],"additionalProperties":{}},"arguments":{"maxItems":199,"type":"array","items":{"type":"string","maxLength":4000}},"workingDirectory":{"type":"object","properties":{"uri":{"type":"string","minLength":1,"maxLength":1000,"description":"Relative path without '..', backslashes, colons or control characters."}},"required":["uri"],"additionalProperties":{}},"startTimeUtc":{"type":"string"},"endTimeUtc":{"type":"string"},"executionSuccessful":{"type":"boolean","const":true},"exitCode":{"type":"number","const":0},"stdout":{"type":"object","properties":{"index":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["index"],"additionalProperties":{}},"stderr":{"type":"object","properties":{"index":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["index"],"additionalProperties":{}},"stdoutStderr":{"type":"object","properties":{"index":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["index"],"additionalProperties":{}}},"required":["executableLocation","arguments","workingDirectory","startTimeUtc","endTimeUtc","executionSuccessful","exitCode"],"additionalProperties":{}}},"artifacts":{"type":"array","items":{"type":"object","properties":{"contents":{"type":"object","properties":{"text":{"type":"string"}},"required":["text"]}},"additionalProperties":{}},"description":"At least one invocation log must refer to an artifact containing embedded text. Source contents are not accepted."},"results":{"maxItems":50000,"type":"array","items":{"type":"object","properties":{"message":{"type":"object","properties":{"text":{"type":"string"}},"required":["text"],"additionalProperties":{}},"kind":{"type":"string","enum":["pass","fail","open","notApplicable","informational","review"]},"properties":{"type":"object","properties":{"harness":{"type":"string"}},"additionalProperties":{}}},"required":["message","kind"],"additionalProperties":{}}},"properties":{"type":"object","properties":{"proofs":{"type":"object","properties":{"schemaVersion":{"type":"number","const":2},"toolchain":{"type":"object","properties":{"schema_version":{"type":"number","const":1},"components":{"type":"object","propertyNames":{"type":"string","pattern":"^[A-Za-z][A-Za-z0-9_-]{0,99}$"},"additionalProperties":{"type":"object","properties":{"tool":{"type":"string","minLength":1,"maxLength":100},"source":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"git"},"repository":{"type":"string","maxLength":1000,"pattern":"^[hH][tT][tT][pP][sS]:\\/\\/[gG][iI][tT][hH][uU][bB]\\.[cC][oO][mM]\\/[A-Za-z0-9_.-]+\\/[A-Za-z0-9_.-]+\\/?$"},"commit":{"type":"string","pattern":"^[a-fA-F0-9]{40}$"}},"required":["kind","repository","commit"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"git_patch"},"repository":{"type":"string","maxLength":1000,"pattern":"^[hH][tT][tT][pP][sS]:\\/\\/[gG][iI][tT][hH][uU][bB]\\.[cC][oO][mM]\\/[A-Za-z0-9_.-]+\\/[A-Za-z0-9_.-]+\\/?$"},"base_commit":{"type":"string","pattern":"^[a-fA-F0-9]{40}$"},"patch":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":1000},"sha256":{"type":"string","pattern":"^[a-fA-F0-9]{64}$"}},"required":["path","sha256"],"additionalProperties":false}},"required":["kind","repository","base_commit","patch"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"release"},"release_id":{"type":"string","minLength":1,"maxLength":300,"pattern":"^[^\\s\\x00-\\x1f\\x7f]+$"}},"required":["kind","release_id"],"additionalProperties":false}]},"materialized":{"type":"object","properties":{"git_tree":{"type":"string","pattern":"^[a-fA-F0-9]{40}$"}},"required":["git_tree"],"additionalProperties":false}},"required":["tool","source"],"additionalProperties":false}},"uses":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"component":{"type":"string","minLength":1,"maxLength":100},"role":{"type":"string","minLength":1,"maxLength":100},"observation":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"dependency_resolved"},"dependency_name":{"type":"string","minLength":1,"maxLength":100},"subdirectory":{"type":"string","minLength":1,"maxLength":1000}},"required":["kind","dependency_name","subdirectory"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"process_executed"},"reported_version":{"type":"string","minLength":1,"maxLength":4000}},"required":["kind","reported_version"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"not_run"}},"required":["kind"],"additionalProperties":false}]}},"required":["component","role","observation"],"additionalProperties":false}}},"required":["schema_version","components","uses"],"additionalProperties":false},"toolchain_input":{"type":"object","properties":{"manifest_path":{"type":"string","minLength":1,"maxLength":1000}},"required":["manifest_path"],"additionalProperties":{}},"dependencies":{"maxItems":10000,"type":"array","items":{"type":"object","properties":{"crate":{"type":"string","minLength":1,"maxLength":100},"version":{"type":"string","minLength":1,"maxLength":100},"source":{"type":"string","minLength":1,"maxLength":1000}},"required":["crate","version","source"]}},"crate":{"type":"string","minLength":1,"maxLength":100},"version":{"type":"string","minLength":1,"maxLength":100},"contracts":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"file":{"type":"string","minLength":1,"maxLength":1000,"description":"Relative path without '..', backslashes, colons or control characters."},"first_line":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"last_line":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"harness":{"type":"string"},"api_paths":{"minItems":1,"type":"array","items":{"type":"string"}},"precondition":{"type":"string"},"formal":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"aeneas"},"version":{"type":"number","const":1},"theorem":{"type":"string","minLength":1,"maxLength":1000},"module":{"type":"string","minLength":1,"maxLength":1000},"statement":{"type":"string","minLength":1,"maxLength":1000000},"binders":{"maxItems":1000,"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"type_segments":{"maxItems":10000,"type":"array","items":{"type":"object","properties":{"text":{"type":"string","maxLength":1000000},"ref":{"type":"string","minLength":1,"maxLength":1000}},"required":["text"],"additionalProperties":false}},"kind":{"type":"string","enum":["variable","hypothesis","instance"]},"binder":{"type":"string"}},"required":["name","type","kind","binder"],"additionalProperties":false}},"conclusion":{"type":"string","minLength":1,"maxLength":1000000},"conclusion_segments":{"maxItems":10000,"type":"array","items":{"type":"object","properties":{"text":{"type":"string","maxLength":1000000},"ref":{"type":"string","minLength":1,"maxLength":1000}},"required":["text"],"additionalProperties":false}},"program":{"type":["string","null"]},"program_head":{"type":["string","null"]},"axioms":{"maxItems":100,"type":"array","items":{"type":"string"}},"mapping":{"type":"string","enum":["manual","manifest"]},"manifest":{"anyOf":[{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":1000},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"aeneas_version":{"type":"string"},"charon_version":{"type":"string"},"entry":{"type":"object","properties":{"lean_name":{"type":"string","minLength":1},"lean_file":{"type":"string","minLength":1},"rust_name":{"type":"string","minLength":1},"def_id":{"type":"integer","minimum":0,"maximum":9007199254740991},"is_local":{"type":"boolean","const":true},"source":{"type":"object","properties":{"file":{"type":"string"},"begin_line":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"end_line":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["file","begin_line","end_line"],"additionalProperties":{}}},"required":["lean_name","lean_file","rust_name","def_id","is_local","source"],"additionalProperties":{}}},"required":["path","sha256","aeneas_version","charon_version","entry"],"additionalProperties":false},{"type":"null"}]},"source":{"type":"object","properties":{"file":{"type":"string"},"first_line":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"last_line":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["file","first_line","last_line"],"additionalProperties":false},"definitions":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"module":{"type":"string"},"source":{"anyOf":[{"type":"object","properties":{"file":{"type":"string"},"first_line":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"last_line":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["file","first_line","last_line"],"additionalProperties":false},{"type":"null"}]}},"required":["name","module"],"additionalProperties":false}},"definitions_truncated":{"type":"boolean"},"translation_rerun":{"type":"boolean","const":false}},"required":["version","theorem","module","statement","binders","conclusion","program","program_head","axioms","mapping","manifest","source","definitions","definitions_truncated","translation_rerun"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"creusot"},"version":{"type":"number","const":1},"signature":{"type":"string","minLength":1,"maxLength":1000000},"requires":{"maxItems":1000,"type":"array","items":{"type":"string","minLength":1,"maxLength":1000000}},"ensures":{"maxItems":1000,"type":"array","items":{"type":"string","minLength":1,"maxLength":1000000}},"source":{"type":"object","properties":{"file":{"type":"string"},"first_line":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"last_line":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["file","first_line","last_line"],"additionalProperties":false}},"required":["kind","version","signature","requires","ensures","source"],"additionalProperties":false}]}},"required":["file","first_line","last_line","harness","api_paths","precondition"],"additionalProperties":{}}}},"required":["schemaVersion","dependencies","crate","version","contracts"],"additionalProperties":{}}},"required":["proofs"],"additionalProperties":{}}},"required":["automationDetails","tool","versionControlProvenance","invocations","artifacts","results","properties"],"additionalProperties":{}}}},"required":["version","runs"],"additionalProperties":{},"description":"Recorded SARIF 2.1.0. Each contract needs matching successful results; times, line ranges, paths and log references are checked before storage."},"VerificationRun":{"type":"object","properties":{"id":{"type":"string"},"author_id":{"type":["string","null"]},"crate":{"type":"string"},"version":{"type":"string"},"tool_version_id":{"type":"string"},"sha256":{"type":"string"},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"created_at":{"type":"string"},"dependencies":{"type":"array","items":{"type":"object","properties":{"crate":{"type":"string","minLength":1,"maxLength":100},"version":{"type":"string","minLength":1,"maxLength":100},"source":{"type":"string","minLength":1,"maxLength":1000}},"required":["crate","version","source"]}}},"required":["id","author_id","crate","version","tool_version_id","sha256","size","created_at","dependencies"]},"Finding":{"type":"object","properties":{"id":{"type":"string"},"report_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"origin_revision_no":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"body":{"type":"string"},"evidence_url":{"type":["string","null"]},"validity":{"type":"string","enum":["reported","confirmed","disputed","invalid","duplicate"]},"upstream_status":{"type":"string","enum":["not_reported","reported_upstream","fix_proposed","fix_merged","released","wont_fix"]},"duplicate_of":{"type":["string","null"]},"edit_version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"created_at":{"type":"string"},"updated_at":{"type":"string"},"crate":{"type":"string"},"version":{"type":"string"},"withdrawn_at":{"type":["string","null"]},"apis":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"display_path":{"type":"string"}},"required":["id","display_path"]}},"links":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"finding_id":{"type":"string"},"kind":{"type":"string","enum":["issue","pr","commit","release","report"]},"url":{"type":"string"},"version":{"type":["string","null"]},"target_report_id":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"target_revision_no":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"created_at":{"type":"string"},"deleted_at":{"type":["string","null"]}},"required":["id","finding_id","kind","url","version","target_report_id","target_revision_no","created_at","deleted_at"]}}},"required":["id","report_id","origin_revision_no","title","body","evidence_url","validity","upstream_status","duplicate_of","edit_version","created_at","updated_at","crate","version","withdrawn_at","apis","links"]},"SessionUser":{"type":"object","properties":{"id":{"type":"string"},"github_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"username":{"type":"string"},"role":{"type":"string"},"status":{"type":"string"},"accepted_terms_version":{"type":"string"},"terms_accepted_at":{"type":"string"},"created_at":{"type":"string"},"csrf":{"type":"string"},"token_id":{"type":"string"}},"required":["id","github_id","username","role","status","accepted_terms_version","terms_accepted_at","created_at"]},"Report":{"type":"object","properties":{"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"release_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"author_id":{"type":["string","null"]},"visibility":{"type":"string"},"withdrawn_at":{"type":["string","null"]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"revision_no":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"explanation":{"type":"string"},"trusted_assumptions":{"type":"string","description":"Displayed as What is trusted."},"environment":{"type":"string"},"evidence_url":{"type":"string"},"limitations":{"type":"string","description":"Displayed as Technical limitations."},"tool_version_id":{"type":"string"},"crate":{"type":"string"},"version":{"type":"string"},"yanked":{"anyOf":[{"type":"number","const":0},{"type":"number","const":1}]},"username":{"type":["string","null"]},"tool_id":{"type":"string","description":"Tool slug, usable as the tool filter."},"tool":{"type":"string"},"tool_version":{"type":"string"},"toolchains_json":{"type":["string","null"]},"tool_limitations":{"type":"string","description":"Displayed as Technical limitations."},"tool_limitations_updated_at":{"type":["string","null"]},"latest_revision_no":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"comment_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"star_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"author_karma":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"claim_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"dependency_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"finding_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Findings other than invalid or duplicate; 0 once withdrawn."}},"required":["id","release_id","author_id","visibility","withdrawn_at","created_at","updated_at","revision_no","title","explanation","trusted_assumptions","environment","evidence_url","limitations","tool_version_id","crate","version","yanked","username","tool_id","tool","tool_version","tool_limitations","tool_limitations_updated_at","latest_revision_no","comment_count","star_count","author_karma","claim_count","dependency_count","finding_count"]},"Crate":{"type":"object","properties":{"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"name":{"type":"string"},"description":{"type":["string","null"]},"api_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"report_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"claim_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"updated_at":{"type":["string","null"]}},"required":["id","name","description","api_count","report_count","claim_count","updated_at"]},"Release":{"type":"object","properties":{"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"crate_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"version":{"type":"string"},"checksum":{"type":["string","null"]},"yanked":{"anyOf":[{"type":"number","const":0},{"type":"number","const":1}]},"created_at":{"type":"string"}},"required":["id","crate_id","version","checksum","yanked","created_at"]},"Claim":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string"},"category":{"type":["string","null"]},"trait_path":{"type":["string","null"]},"self_type":{"type":["string","null"]},"method_name":{"type":["string","null"]},"is_blanket":{"anyOf":[{"anyOf":[{"type":"number","const":0},{"type":"number","const":1}]},{"type":"null"}]},"claim_number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"report_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"api_item_id":{"type":"string"},"created_at":{"type":"string"},"report_revision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"precondition":{"type":"string"},"evidence_ref":{"anyOf":[{"type":"object","properties":{"run_id":{"type":"string","pattern":"^[a-f0-9]{8}(-[a-f0-9]{4}){3}-[a-f0-9]{12}$"},"harness":{"type":"string","minLength":1,"maxLength":1000}},"required":["run_id","harness"],"additionalProperties":false},{"type":"null"}]},"explanation":{"type":"string"},"trusted_assumptions":{"type":"string","description":"Displayed as What is trusted."},"evidence_url":{"type":"string"},"limitations":{"type":"string","description":"Displayed as Technical limitations."},"display_path":{"type":"string"},"is_unsafe":{"anyOf":[{"anyOf":[{"type":"number","const":0},{"type":"number","const":1}]},{"type":"null"}]},"origin":{"type":"string","enum":["rustdoc","recorded"]},"signature":{"type":"string"},"upstream_url":{"type":"string"},"author_id":{"type":["string","null"]},"withdrawn_at":{"type":["string","null"]},"visibility":{"type":"string"},"report_title":{"type":"string"},"shared_explanation":{"type":"string"},"shared_trusted_assumptions":{"type":"string","description":"Displayed as What is trusted."},"shared_evidence_url":{"type":"string"},"shared_limitations":{"type":"string","description":"Displayed as Technical limitations."},"environment":{"type":"string"},"tool_version_id":{"type":"string"},"crate":{"type":"string"},"version":{"type":"string"},"username":{"type":["string","null"]},"tool":{"type":"string"},"tool_version":{"type":"string"},"tool_limitations":{"type":"string","description":"Displayed as Technical limitations."},"tool_limitations_updated_at":{"type":["string","null"]},"latest_report_revision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"toolchain_json":{"type":["string","null"]},"star_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"report_star_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"report_comment_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"author_karma":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"in_current_report":{"anyOf":[{"type":"number","const":0},{"type":"number","const":1}]}},"required":["id","kind","category","trait_path","self_type","method_name","is_blanket","claim_number","report_id","api_item_id","created_at","report_revision","position","title","precondition","explanation","trusted_assumptions","evidence_url","limitations","display_path","is_unsafe","signature","upstream_url","author_id","withdrawn_at","visibility","report_title","shared_explanation","shared_trusted_assumptions","shared_evidence_url","shared_limitations","environment","tool_version_id","crate","version","username","tool","tool_version","tool_limitations","tool_limitations_updated_at","latest_report_revision","star_count","report_star_count","report_comment_count","author_karma","in_current_report"]},"ReportInput":{"type":"object","properties":{"crate":{"type":"string","minLength":1,"maxLength":100},"version":{"type":"string","minLength":1,"maxLength":100},"tool_version_id":{"type":"string","minLength":1,"maxLength":200},"title":{"type":"string","minLength":1,"maxLength":1000},"explanation":{"type":"string","maxLength":10000},"trusted_assumptions":{"type":"string","maxLength":10000},"environment":{"type":"string","maxLength":10000},"evidence_url":{"type":"string","maxLength":1000},"limitations":{"type":"string","maxLength":10000},"claims":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":100},"api_item_id":{"type":"string","minLength":1,"maxLength":200},"title":{"type":"string","maxLength":1000},"precondition":{"default":"","type":"string","maxLength":10000},"evidence_ref":{"anyOf":[{"type":"object","properties":{"run_id":{"type":"string","pattern":"^[a-f0-9]{8}(-[a-f0-9]{4}){3}-[a-f0-9]{12}$"},"harness":{"type":"string","minLength":1,"maxLength":1000}},"required":["run_id","harness"],"additionalProperties":false},{"type":"null"}]},"explanation":{"type":"string","maxLength":10000},"trusted_assumptions":{"type":"string","maxLength":10000},"evidence_url":{"type":"string","maxLength":1000},"limitations":{"type":"string","maxLength":10000}},"required":["api_item_id"]}},"run_ids":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string"}},"dependencies":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"crate":{"type":"string","minLength":1,"maxLength":100},"report":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"string","pattern":"^\\d+$"}]},"revision":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"string","pattern":"^\\d+$"}]}},"required":["crate","report","revision"],"additionalProperties":false}},"findings":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":1000},"body":{"type":"string","minLength":1,"maxLength":10000},"evidence_url":{"anyOf":[{"type":"string","maxLength":2000,"format":"uri"},{"type":"null"}]},"api_item_ids":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}}},"required":["title","body"],"additionalProperties":false}}},"required":["crate","version","tool_version_id","title","claims","run_ids"]},"Comment":{"type":"object","properties":{"id":{"type":"string"},"report_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sequence_no":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"revision_no":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"author_id":{"type":["string","null"]},"reply_to_id":{"type":["string","null"]},"body":{"type":["string","null"]},"edit_version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"created_at":{"type":"string"},"edited_at":{"type":["string","null"]},"deleted_at":{"type":["string","null"]},"username":{"type":["string","null"]},"score":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"my_vote":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"reply_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hidden":{"type":"boolean"}},"required":["id","report_id","sequence_no","revision_no","author_id","reply_to_id","body","edit_version","created_at","edited_at","deleted_at","username","score","my_vote","reply_count","hidden"]},"Tool":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"official_url":{"type":"string"},"active":{"anyOf":[{"type":"number","const":0},{"type":"number","const":1}]}},"required":["id","name","description","official_url","active"]},"ToolVersion":{"type":"object","properties":{"id":{"type":"string"},"tool_id":{"type":"string"},"version":{"type":"string"},"selectable":{"anyOf":[{"type":"number","const":0},{"type":"number","const":1}]},"limitations":{"type":"string","description":"Displayed as Technical limitations."},"limitations_updated_at":{"type":["string","null"]}},"required":["id","tool_id","version","selectable","limitations","limitations_updated_at"]}}},"paths":{"/auth/github":{"get":{"operationId":"getAuthGithub","summary":"Start GitHub sign-in","tags":["Authentication"],"security":[],"parameters":[{"name":"return_to","in":"query","required":false,"schema":{"type":"string"}},{"name":"switch_account","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"302":{"description":"Redirect","headers":{"Location":{"description":"Redirect destination","required":true,"schema":{"type":"string"}}}},"429":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/auth/github/callback":{"get":{"operationId":"getAuthGithubCallback","summary":"Complete GitHub sign-in","tags":["Authentication"],"description":"OAuth callback; requires the matching oauth_state cookie.","security":[],"parameters":[{"name":"state","in":"query","required":true,"schema":{"type":"string"}},{"name":"code","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"302":{"description":"Redirect","headers":{"Location":{"description":"Redirect destination","required":true,"schema":{"type":"string"}}}},"400":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"502":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/auth/signup":{"get":{"operationId":"getAuthSignup","summary":"Read pending signup details","tags":["Authentication"],"description":"Requires the pending signup cookie from GitHub sign-in.","security":[],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"username":{"type":"string"},"csrf":{"type":"string"},"terms_version":{"type":"string"},"return_to":{"type":"string"}},"required":["username","csrf","terms_version","return_to"]}}}},"401":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"postAuthSignup","summary":"Complete account signup","tags":["Authentication"],"security":[{"signup":[],"csrf":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"terms_version":{"type":"string"}},"required":["terms_version"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"return_to":{"type":"string"}},"required":["return_to"]}}}},"401":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/auth/logout":{"post":{"operationId":"postAuthLogout","summary":"End the browser session","tags":["Authentication"],"security":[{"session":[],"csrf":[]}],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"]}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/auth/device/code":{"post":{"operationId":"postAuthDeviceCode","summary":"Start device authorization","tags":["Authentication"],"security":[],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"client_id":{"type":"string","const":"proofs-cli"},"scope":{"type":"string","const":"publish"}},"required":["client_id"]}},"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"client_id":{"type":"string","const":"proofs-cli"},"scope":{"type":"string","const":"publish"}},"required":["client_id"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"device_code":{"type":"string"},"user_code":{"type":"string"},"verification_uri":{"type":"string"},"verification_uri_complete":{"type":"string"},"expires_in":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"interval":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["device_code","user_code","verification_uri","verification_uri_complete","expires_in","interval"]}}}},"400":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/auth/device/token":{"post":{"operationId":"postAuthDeviceToken","summary":"Poll for a device access token","tags":["Authentication"],"description":"Poll at the returned interval. authorization_pending and slow_down are 400 responses; increase the interval after slow_down.","security":[],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"client_id":{"type":"string","const":"proofs-cli"},"grant_type":{"type":"string","const":"urn:ietf:params:oauth:grant-type:device_code"},"device_code":{"type":"string","minLength":1,"maxLength":200}},"required":["client_id","grant_type","device_code"]}},"application/x-www-form-urlencoded":{"schema":{"type":"object","properties":{"client_id":{"type":"string","const":"proofs-cli"},"grant_type":{"type":"string","const":"urn:ietf:params:oauth:grant-type:device_code"},"device_code":{"type":"string","minLength":1,"maxLength":200}},"required":["client_id","grant_type","device_code"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"access_token":{"type":"string"},"token_type":{"type":"string","const":"Bearer"},"scope":{"type":"string","const":"publish"},"expires_in":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"token_id":{"type":"string"}},"required":["access_token","token_type","scope","expires_in","token_id"]}}}},"400":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"428":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/auth/device/inspect":{"post":{"operationId":"postAuthDeviceInspect","summary":"Inspect a device authorization","tags":["Authentication"],"security":[{"session":[],"csrf":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"user_code":{"type":"string","minLength":1,"maxLength":20}},"required":["user_code"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"state":{"type":"string"},"expires_at":{"type":"string"}},"required":["state","expires_at"]}}}},"400":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/auth/device/approve":{"post":{"operationId":"postAuthDeviceApprove","summary":"Approve a device authorization","tags":["Authentication"],"security":[{"session":[],"csrf":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"user_code":{"type":"string","minLength":1,"maxLength":20}},"required":["user_code"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"]}}}},"409":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/me/tokens":{"get":{"operationId":"getApiV1MeTokens","summary":"List my active API tokens","tags":["Account"],"security":[{"session":[]}],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"created_at":{"type":"string"},"last_used_at":{"type":["string","null"]},"expires_at":{"type":"string"}},"required":["id","created_at","last_used_at","expires_at"]}}},"required":["items"]}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/me/tokens/{id}":{"delete":{"operationId":"deleteApiV1MeTokensById","summary":"Revoke an API token","tags":["Account"],"security":[{"session":[],"csrf":[]}],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"]}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/tokens/revoke":{"post":{"operationId":"postApiV1TokensRevoke","summary":"Revoke the current bearer token","tags":["Account"],"security":[{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"]}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/runs/prepare":{"post":{"operationId":"postApiV1RunsPrepare","summary":"Validate recorded evidence and preview exact API bindings","tags":["Runs"],"description":"Validates the same immutable SARIF as upload, without storing evidence, creating API items, importing rustdoc, or publishing a report. Recorded API metadata is an author observation, not an independent rustdoc assertion.","security":[{"session":[],"csrf":[]},{"bearer":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/sarif+json":{"schema":{"$ref":"#/components/schemas/Sarif"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"sha256":{"type":"string"},"apis":{"type":"array","items":{"type":"object","properties":{"contract_index":{"type":"integer","minimum":0,"maximum":9007199254740991},"api_item_id":{"type":"string"},"display_path":{"type":"string"},"origin":{"type":"string","enum":["rustdoc","recorded"]}},"required":["contract_index","api_item_id","display_path","origin"]}}},"required":["id","sha256","apis"]}}}},"400":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/runs/{run}/sarif":{"post":{"operationId":"postApiV1RunsByRunSarif","summary":"Upload a recorded verification run","tags":["Runs"],"description":"Uploads original SARIF bytes (maximum 8 MiB). Identical uploads return 200; new runs return 201. The run ID must match automationDetails.guid.","security":[{"session":[],"csrf":[]},{"bearer":[]}],"parameters":[{"name":"run","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-f0-9]{8}(-[a-f0-9]{4}){3}-[a-f0-9]{12}$"}}],"requestBody":{"required":true,"content":{"application/sarif+json":{"schema":{"$ref":"#/components/schemas/Sarif"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"sha256":{"type":"string"},"apis":{"type":"array","items":{"type":"object","properties":{"contract_index":{"type":"integer","minimum":0,"maximum":9007199254740991},"api_item_id":{"type":"string"},"display_path":{"type":"string"},"origin":{"type":"string","enum":["rustdoc","recorded"]}},"required":["contract_index","api_item_id","display_path","origin"]}}},"required":["id","sha256","apis"]}}}},"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"sha256":{"type":"string"},"apis":{"type":"array","items":{"type":"object","properties":{"contract_index":{"type":"integer","minimum":0,"maximum":9007199254740991},"api_item_id":{"type":"string"},"display_path":{"type":"string"},"origin":{"type":"string","enum":["rustdoc","recorded"]}},"required":["contract_index","api_item_id","display_path","origin"]}}},"required":["id","sha256","apis"]}}}},"400":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"428":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"get":{"operationId":"getApiV1RunsByRunSarif","summary":"Download a verification run as SARIF","tags":["Runs"],"security":[{},{"session":[]},{"bearer":[]}],"parameters":[{"name":"run","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-f0-9]{8}(-[a-f0-9]{4}){3}-[a-f0-9]{12}$"}}],"responses":{"200":{"description":"Success","content":{"application/sarif+json":{"schema":{"$ref":"#/components/schemas/Sarif"}}}},"400":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/runs/{run}":{"get":{"operationId":"getApiV1RunsByRun","summary":"Read verification run metadata","tags":["Runs"],"description":"Unpublished runs are visible only to their author.","security":[{},{"session":[]},{"bearer":[]}],"parameters":[{"name":"run","in":"path","required":true,"schema":{"type":"string","pattern":"^[a-f0-9]{8}(-[a-f0-9]{4}){3}-[a-f0-9]{12}$"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VerificationRun"}}}},"400":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/reports/{id}/findings":{"get":{"operationId":"getApiV1ReportsByIdFindings","summary":"List findings for a report","tags":["Findings"],"security":[{},{"session":[]},{"bearer":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"description":"Opaque next_cursor from the previous page; omit for the first page.","type":"string"}},{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Finding"}},"next_cursor":{"type":["string","null"]}},"required":["items","next_cursor"]}}}},"404":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"postApiV1ReportsByIdFindings","summary":"Add a finding to a report","tags":["Findings"],"security":[{"session":[],"csrf":[]},{"bearer":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","pattern":"^[a-zA-Z0-9_-]{16,100}$"}},{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":1000},"body":{"type":"string","minLength":1,"maxLength":10000},"evidence_url":{"anyOf":[{"type":"string","maxLength":2000,"format":"uri"},{"type":"null"}]},"api_item_ids":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}}},"required":["title","body"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"400":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"428":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/crates/{name}/{version}/findings":{"get":{"operationId":"getApiV1CratesByNameByVersionFindings","summary":"List active findings for a crate version","tags":["Findings"],"security":[{},{"session":[]},{"bearer":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"description":"Opaque next_cursor from the previous page; omit for the first page.","type":"string"}},{"schema":{"type":"string"},"in":"path","name":"name","required":true},{"schema":{"type":"string"},"in":"path","name":"version","required":true}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Finding"}},"next_cursor":{"type":["string","null"]}},"required":["items","next_cursor"]}}}},"404":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/findings/{id}":{"get":{"operationId":"getApiV1FindingsById","summary":"Read a finding and its event history","tags":["Findings"],"security":[{},{"session":[]},{"bearer":[]}],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"report_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"origin_revision_no":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"body":{"type":"string"},"evidence_url":{"type":["string","null"]},"validity":{"type":"string","enum":["reported","confirmed","disputed","invalid","duplicate"]},"upstream_status":{"type":"string","enum":["not_reported","reported_upstream","fix_proposed","fix_merged","released","wont_fix"]},"duplicate_of":{"type":["string","null"]},"edit_version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"created_at":{"type":"string"},"updated_at":{"type":"string"},"crate":{"type":"string"},"version":{"type":"string"},"withdrawn_at":{"type":["string","null"]},"apis":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"display_path":{"type":"string"}},"required":["id","display_path"]}},"links":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"finding_id":{"type":"string"},"kind":{"type":"string","enum":["issue","pr","commit","release","report"]},"url":{"type":"string"},"version":{"type":["string","null"]},"target_report_id":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"target_revision_no":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"created_at":{"type":"string"},"deleted_at":{"type":["string","null"]}},"required":["id","finding_id","kind","url","version","target_report_id","target_revision_no","created_at","deleted_at"]}},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"finding_id":{"type":"string"},"edit_version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"actor_id":{"type":["string","null"]},"action":{"type":"string"},"payload":{"type":"string"},"created_at":{"type":"string"}},"required":["id","finding_id","edit_version","actor_id","action","payload","created_at"]}}},"required":["id","report_id","origin_revision_no","title","body","evidence_url","validity","upstream_status","duplicate_of","edit_version","created_at","updated_at","crate","version","withdrawn_at","apis","links","events"]}}}},"404":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"patchApiV1FindingsById","summary":"Edit finding content or reported status","tags":["Findings"],"security":[{"session":[],"csrf":[]},{"bearer":[]}],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":1000},"body":{"type":"string","minLength":1,"maxLength":10000},"evidence_url":{"anyOf":[{"type":"string","maxLength":2000,"format":"uri"},{"type":"null"}]},"api_item_ids":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"validity":{"type":"string","enum":["reported","confirmed","disputed","invalid","duplicate"]},"upstream_status":{"type":"string","enum":["not_reported","reported_upstream","fix_proposed","fix_merged","released","wont_fix"]},"duplicate_of":{"anyOf":[{"type":"string","minLength":1,"maxLength":100},{"type":"null"}]},"edit_version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["edit_version"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"edit_version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["edit_version"]}}}},"400":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"428":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/findings/{id}/links":{"post":{"operationId":"postApiV1FindingsByIdLinks","summary":"Add supporting evidence to a finding","tags":["Findings"],"security":[{"session":[],"csrf":[]},{"bearer":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","pattern":"^[a-zA-Z0-9_-]{16,100}$"}},{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["issue","pr","commit","release","report"]},"url":{"type":"string","maxLength":2000,"format":"uri"},"version":{"anyOf":[{"type":"string","minLength":1,"maxLength":100},{"type":"null"}]},"target_report_id":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"target_revision_no":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"edit_version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["kind","url","edit_version"],"additionalProperties":false}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"edit_version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","edit_version"]}}}},"400":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"428":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/findings/{id}/links/{link_id}":{"delete":{"operationId":"deleteApiV1FindingsByIdLinksByLinkId","summary":"Soft delete a finding link","tags":["Findings"],"security":[{"session":[],"csrf":[]},{"bearer":[]}],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true},{"schema":{"type":"string"},"in":"path","name":"link_id","required":true}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"edit_version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["edit_version"],"additionalProperties":false}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"edit_version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["edit_version"]}}}},"400":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"428":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/health":{"get":{"operationId":"getApiV1Health","summary":"Check service health","tags":["System"],"security":[{},{"session":[]},{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true},"environment":{"type":"string"}},"required":["ok","environment"]}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/config":{"get":{"operationId":"getApiV1Config","summary":"Read public application configuration","tags":["System"],"security":[{},{"session":[]},{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"environment":{"type":"string"},"oauth_configured":{"type":"boolean"},"email_disabled":{"type":"boolean"},"email_configured":{"type":"boolean"},"terms_version":{"type":"string"},"show_star_karma":{"type":"boolean"},"show_home_discussion":{"type":"boolean"}},"required":["environment","oauth_configured","email_disabled","email_configured","terms_version","show_star_karma","show_home_discussion"]}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/terms/current":{"get":{"operationId":"getApiV1TermsCurrent","summary":"Read current terms","tags":["System"],"security":[{},{"session":[]},{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"string"},"url":{"type":"string"},"summary":{"type":"string"},"requires_agreement":{"type":"boolean"}},"required":["version","url","summary","requires_agreement"]}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/me":{"get":{"operationId":"getApiV1Me","summary":"Read the current session","tags":["Account"],"security":[{},{"session":[]},{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"user":{"type":"null"}},"required":["user"]},{"type":"object","properties":{"user":{"$ref":"#/components/schemas/SessionUser"},"csrf":{"type":"string"},"email":{"anyOf":[{"type":"object","properties":{"address":{"type":["string","null"]},"delivery_status":{"type":"string"}},"required":["address","delivery_status"]},{"type":"null"}]},"delayed_notifications":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"karma":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"terms_required":{"type":"boolean"}},"required":["user","csrf","email","delayed_notifications","karma","terms_required"]}]}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/me/terms-acceptance":{"post":{"operationId":"postApiV1MeTermsAcceptance","summary":"Accept current terms","tags":["Account"],"security":[{"session":[],"csrf":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"string"}},"required":["version"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"]}}}},"409":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/me/notification-preferences":{"get":{"operationId":"getApiV1MeNotificationPreferences","summary":"Read notification preferences","tags":["Account"],"security":[{"session":[]}],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"replies":{"anyOf":[{"type":"number","const":0},{"type":"number","const":1}]},"report_comments":{"anyOf":[{"type":"number","const":0},{"type":"number","const":1}]}},"required":["replies","report_comments"]}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"patchApiV1MeNotificationPreferences","summary":"Update notification preferences","tags":["Account"],"security":[{"session":[],"csrf":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"replies":{"type":"boolean"},"report_comments":{"type":"boolean"}},"required":["replies","report_comments"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"]}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/notifications/unsubscribe":{"post":{"operationId":"postApiV1NotificationsUnsubscribe","summary":"Unsubscribe from notifications","tags":["Account"],"description":"Requires a signed unsubscribe link and the application Origin.","security":[],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"user":{"type":"string"},"signature":{"type":"string"}},"required":["user","signature"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"]}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/home":{"get":{"operationId":"getApiV1Home","summary":"Read recent reports and discussion","tags":["System"],"security":[],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"reports":{"type":"array","items":{"$ref":"#/components/schemas/Report"}},"discussion":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"report_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sequence_no":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"revision_no":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"body":{"type":["string","null"]},"created_at":{"type":"string"},"username":{"type":["string","null"]},"author_id":{"type":["string","null"]}},"required":["id","report_id","sequence_no","revision_no","body","created_at","username","author_id"]}}},"required":["reports","discussion"]}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/reports":{"get":{"operationId":"getApiV1Reports","summary":"List public reports","tags":["Reports"],"security":[{},{"session":[]},{"bearer":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"description":"Opaque next_cursor from the previous page; omit for the first page.","type":"string"}},{"name":"q","in":"query","required":false,"schema":{"description":"Substring of the report title or crate name.","type":"string"}},{"name":"tool","in":"query","required":false,"schema":{"description":"Tool slug, as listed by /tools.","type":"string"}},{"name":"author","in":"query","required":false,"schema":{"description":"Author username; matched case-insensitively.","type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Report"}},"next_cursor":{"type":["string","null"]}},"required":["items","next_cursor"]}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"postApiV1Reports","summary":"Publish a report","tags":["Reports"],"security":[{"session":[],"csrf":[]},{"bearer":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","pattern":"^[a-zA-Z0-9_-]{16,100}$"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReportInput"}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id"]}}}},"400":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"428":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/crates":{"get":{"operationId":"getApiV1Crates","summary":"Search crates with published reports","tags":["Crates"],"security":[{},{"session":[]},{"bearer":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"description":"Opaque next_cursor from the previous page; omit for the first page.","type":"string"}},{"name":"q","in":"query","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Crate"}},"next_cursor":{"type":["string","null"]},"total_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"matching_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["items","next_cursor","total_count","matching_count"]}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/crates/{name}/releases":{"get":{"operationId":"getApiV1CratesByNameReleases","summary":"List published crate releases","tags":["Crates"],"security":[{},{"session":[]},{"bearer":[]}],"parameters":[{"schema":{"type":"string"},"in":"path","name":"name","required":true}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Release"}},"description":{"type":"string"},"default_version":{"type":"string"}},"required":["items","description"]}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/crates/{name}/{version}/badge":{"get":{"operationId":"getApiV1CratesByNameByVersionBadge","summary":"Read a Shields.io claims badge for a crate release","tags":["Crates"],"description":"Shields.io endpoint badge. Counts claims in the latest revisions of public, non-withdrawn reports for this version.","security":[{},{"session":[]},{"bearer":[]}],"parameters":[{"schema":{"type":"string"},"in":"path","name":"name","required":true},{"schema":{"type":"string"},"in":"path","name":"version","required":true}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"schemaVersion":{"type":"number","const":1},"label":{"type":"string","const":"proofs.rs"},"message":{"type":"string"},"color":{"type":"string","const":"blue"}},"required":["schemaVersion","label","message","color"]}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/crates/{name}/{version}/apis":{"get":{"operationId":"getApiV1CratesByNameByVersionApis","summary":"List crate APIs","tags":["Crates"],"security":[{},{"session":[]},{"bearer":[]}],"parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string"}},{"schema":{"type":"string"},"in":"path","name":"name","required":true},{"schema":{"type":"string"},"in":"path","name":"version","required":true}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"release_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"canonical_key":{"type":"string"},"display_path":{"type":"string"},"kind":{"type":"string"},"is_unsafe":{"anyOf":[{"anyOf":[{"type":"number","const":0},{"type":"number","const":1}]},{"type":"null"}]},"origin":{"type":"string","enum":["rustdoc","recorded"]},"signature":{"type":"string"},"upstream_url":{"type":"string"},"claim_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"category":{"type":["string","null"]},"trait_path":{"type":["string","null"]},"self_type":{"type":["string","null"]},"method_name":{"type":["string","null"]},"is_blanket":{"anyOf":[{"anyOf":[{"type":"number","const":0},{"type":"number","const":1}]},{"type":"null"}]}},"required":["id","release_id","canonical_key","display_path","kind","is_unsafe","signature","upstream_url","claim_count","category","trait_path","self_type","method_name","is_blanket"]}},"next_cursor":{"type":["string","null"]},"catalog_warnings":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"id":{"type":"string"},"reason":{"type":"string","const":"missing_reexport_target"}},"required":["path","id","reason"]}}},"required":["items","next_cursor","catalog_warnings"]}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/crates/{name}/{version}/reports":{"get":{"operationId":"getApiV1CratesByNameByVersionReports","summary":"List reports for a crate release","tags":["Crates"],"security":[{},{"session":[]},{"bearer":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"description":"Opaque next_cursor from the previous page; omit for the first page.","type":"string"}},{"schema":{"type":"string"},"in":"path","name":"name","required":true},{"schema":{"type":"string"},"in":"path","name":"version","required":true}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Report"}},"next_cursor":{"type":["string","null"]}},"required":["items","next_cursor"]}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/apis/{id}":{"get":{"operationId":"getApiV1ApisById","summary":"Read an API item","tags":["APIs"],"security":[{},{"session":[]},{"bearer":[]}],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"release_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"canonical_key":{"type":"string"},"display_path":{"type":"string"},"kind":{"type":"string"},"is_unsafe":{"anyOf":[{"anyOf":[{"type":"number","const":0},{"type":"number","const":1}]},{"type":"null"}]},"origin":{"type":"string","enum":["rustdoc","recorded"]},"signature":{"type":"string"},"upstream_url":{"type":"string"},"crate":{"type":"string"},"version":{"type":"string"},"yanked":{"anyOf":[{"type":"number","const":0},{"type":"number","const":1}]},"target":{"type":["string","null"]},"features_json":{"type":["string","null"]},"rustdoc_format":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"catalog_warnings":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"id":{"type":"string"},"reason":{"type":"string","const":"missing_reexport_target"}},"required":["path","id","reason"]}}},"required":["id","release_id","canonical_key","display_path","kind","is_unsafe","signature","upstream_url","crate","version","yanked","target","features_json","rustdoc_format","catalog_warnings"]}}}},"404":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/apis/{id}/claims":{"get":{"operationId":"getApiV1ApisByIdClaims","summary":"List claims for an API item","tags":["APIs"],"security":[{},{"session":[]},{"bearer":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"description":"Opaque next_cursor from the previous page; omit for the first page.","type":"string"}},{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Claim"}},"next_cursor":{"type":["string","null"]}},"required":["items","next_cursor"]}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/reports/{id}/revisions":{"get":{"operationId":"getApiV1ReportsByIdRevisions","summary":"List report revisions","tags":["Reports"],"security":[{},{"session":[]},{"bearer":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"description":"Opaque next_cursor from the previous page; omit for the first page.","type":"string"}},{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"revision_no":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"created_at":{"type":"string"}},"required":["revision_no","created_at"]}},"next_cursor":{"type":["string","null"]}},"required":["items","next_cursor"]}}}},"404":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"postApiV1ReportsByIdRevisions","summary":"Publish a report revision","tags":["Reports"],"security":[{"session":[],"csrf":[]},{"bearer":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","pattern":"^[a-zA-Z0-9_-]{16,100}$"}},{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"crate":{"type":"string","minLength":1,"maxLength":100},"version":{"type":"string","minLength":1,"maxLength":100},"tool_version_id":{"type":"string","minLength":1,"maxLength":200},"title":{"type":"string","minLength":1,"maxLength":1000},"explanation":{"type":"string","maxLength":10000},"trusted_assumptions":{"type":"string","maxLength":10000},"environment":{"type":"string","maxLength":10000},"evidence_url":{"type":"string","maxLength":1000},"limitations":{"type":"string","maxLength":10000},"claims":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":100},"api_item_id":{"type":"string","minLength":1,"maxLength":200},"title":{"type":"string","maxLength":1000},"precondition":{"default":"","type":"string","maxLength":10000},"evidence_ref":{"anyOf":[{"type":"object","properties":{"run_id":{"type":"string","pattern":"^[a-f0-9]{8}(-[a-f0-9]{4}){3}-[a-f0-9]{12}$"},"harness":{"type":"string","minLength":1,"maxLength":1000}},"required":["run_id","harness"],"additionalProperties":false},{"type":"null"}]},"explanation":{"type":"string","maxLength":10000},"trusted_assumptions":{"type":"string","maxLength":10000},"evidence_url":{"type":"string","maxLength":1000},"limitations":{"type":"string","maxLength":10000}},"required":["api_item_id"]}},"run_ids":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string"}},"dependencies":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"crate":{"type":"string","minLength":1,"maxLength":100},"report":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"string","pattern":"^\\d+$"}]},"revision":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"string","pattern":"^\\d+$"}]}},"required":["crate","report","revision"],"additionalProperties":false}},"expected_revision":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"string","pattern":"^\\d+$"}]}},"required":["crate","version","tool_version_id","title","claims","run_ids","expected_revision"]}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"revision_no":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","revision_no"]}}}},"400":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"428":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/reports/{id}":{"get":{"operationId":"getApiV1ReportsById","summary":"Read the latest report revision","tags":["Reports"],"security":[{},{"session":[]},{"bearer":[]}],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"release_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"author_id":{"type":["string","null"]},"visibility":{"type":"string"},"withdrawn_at":{"type":["string","null"]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"revision_no":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"explanation":{"type":"string"},"trusted_assumptions":{"type":"string","description":"Displayed as What is trusted."},"environment":{"type":"string"},"evidence_url":{"type":"string"},"limitations":{"type":"string","description":"Displayed as Technical limitations."},"tool_version_id":{"type":"string"},"crate":{"type":"string"},"version":{"type":"string"},"yanked":{"anyOf":[{"type":"number","const":0},{"type":"number","const":1}]},"username":{"type":["string","null"]},"tool_id":{"type":"string","description":"Tool slug, usable as the tool filter."},"tool":{"type":"string"},"tool_version":{"type":"string"},"toolchains_json":{"type":["string","null"]},"tool_limitations":{"type":"string","description":"Displayed as Technical limitations."},"tool_limitations_updated_at":{"type":["string","null"]},"latest_revision_no":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"comment_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"star_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"author_karma":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"claim_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"dependency_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"finding_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Findings other than invalid or duplicate; 0 once withdrawn."},"dependencies":{"type":"array","items":{"type":"object","properties":{"crate":{"type":"string"},"version":{"type":"string"},"report":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"revision":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"withdrawn":{"type":"boolean"}},"required":["crate","version","report","revision","withdrawn"]}},"my_star":{"type":"boolean"},"run_ids":{"type":"array","items":{"type":"string"}},"claims":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string"},"category":{"type":["string","null"]},"trait_path":{"type":["string","null"]},"self_type":{"type":["string","null"]},"method_name":{"type":["string","null"]},"is_blanket":{"anyOf":[{"anyOf":[{"type":"number","const":0},{"type":"number","const":1}]},{"type":"null"}]},"claim_number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"report_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"api_item_id":{"type":"string"},"created_at":{"type":"string"},"report_revision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"precondition":{"type":"string"},"evidence_ref":{"anyOf":[{"type":"object","properties":{"run_id":{"type":"string","pattern":"^[a-f0-9]{8}(-[a-f0-9]{4}){3}-[a-f0-9]{12}$"},"harness":{"type":"string","minLength":1,"maxLength":1000}},"required":["run_id","harness"],"additionalProperties":false},{"type":"null"}]},"explanation":{"type":"string"},"trusted_assumptions":{"type":"string","description":"Displayed as What is trusted."},"evidence_url":{"type":"string"},"limitations":{"type":"string","description":"Displayed as Technical limitations."},"display_path":{"type":"string"},"is_unsafe":{"anyOf":[{"anyOf":[{"type":"number","const":0},{"type":"number","const":1}]},{"type":"null"}]},"origin":{"type":"string","enum":["rustdoc","recorded"]},"signature":{"type":"string"},"upstream_url":{"type":"string"},"author_id":{"type":["string","null"]},"withdrawn_at":{"type":["string","null"]},"visibility":{"type":"string"},"report_title":{"type":"string"},"shared_explanation":{"type":"string"},"shared_trusted_assumptions":{"type":"string","description":"Displayed as What is trusted."},"shared_evidence_url":{"type":"string"},"shared_limitations":{"type":"string","description":"Displayed as Technical limitations."},"environment":{"type":"string"},"tool_version_id":{"type":"string"},"crate":{"type":"string"},"version":{"type":"string"},"username":{"type":["string","null"]},"tool":{"type":"string"},"tool_version":{"type":"string"},"tool_limitations":{"type":"string","description":"Displayed as Technical limitations."},"tool_limitations_updated_at":{"type":["string","null"]},"latest_report_revision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"toolchain_json":{"type":["string","null"]},"star_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"report_star_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"report_comment_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"author_karma":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"in_current_report":{"anyOf":[{"type":"number","const":0},{"type":"number","const":1}]},"my_star":{"type":"boolean"}},"required":["id","kind","category","trait_path","self_type","method_name","is_blanket","claim_number","report_id","api_item_id","created_at","report_revision","position","title","precondition","explanation","trusted_assumptions","evidence_url","limitations","display_path","is_unsafe","signature","upstream_url","author_id","withdrawn_at","visibility","report_title","shared_explanation","shared_trusted_assumptions","shared_evidence_url","shared_limitations","environment","tool_version_id","crate","version","username","tool","tool_version","tool_limitations","tool_limitations_updated_at","latest_report_revision","star_count","report_star_count","report_comment_count","author_karma","in_current_report","my_star"]}}},"required":["id","release_id","author_id","visibility","withdrawn_at","created_at","updated_at","revision_no","title","explanation","trusted_assumptions","environment","evidence_url","limitations","tool_version_id","crate","version","yanked","username","tool_id","tool","tool_version","tool_limitations","tool_limitations_updated_at","latest_revision_no","comment_count","star_count","author_karma","claim_count","dependency_count","finding_count","dependencies","my_star","run_ids","claims"]}}}},"404":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/reports/{id}/revisions/{n}":{"get":{"operationId":"getApiV1ReportsByIdRevisionsByN","summary":"Read a report revision","tags":["Reports"],"security":[{},{"session":[]},{"bearer":[]}],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true},{"schema":{"type":"string"},"in":"path","name":"n","required":true}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"release_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"author_id":{"type":["string","null"]},"visibility":{"type":"string"},"withdrawn_at":{"type":["string","null"]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"revision_no":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"explanation":{"type":"string"},"trusted_assumptions":{"type":"string","description":"Displayed as What is trusted."},"environment":{"type":"string"},"evidence_url":{"type":"string"},"limitations":{"type":"string","description":"Displayed as Technical limitations."},"tool_version_id":{"type":"string"},"crate":{"type":"string"},"version":{"type":"string"},"yanked":{"anyOf":[{"type":"number","const":0},{"type":"number","const":1}]},"username":{"type":["string","null"]},"tool_id":{"type":"string","description":"Tool slug, usable as the tool filter."},"tool":{"type":"string"},"tool_version":{"type":"string"},"toolchains_json":{"type":["string","null"]},"tool_limitations":{"type":"string","description":"Displayed as Technical limitations."},"tool_limitations_updated_at":{"type":["string","null"]},"latest_revision_no":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"comment_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"star_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"author_karma":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"claim_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"dependency_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"finding_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Findings other than invalid or duplicate; 0 once withdrawn."},"dependencies":{"type":"array","items":{"type":"object","properties":{"crate":{"type":"string"},"version":{"type":"string"},"report":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"revision":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"withdrawn":{"type":"boolean"}},"required":["crate","version","report","revision","withdrawn"]}},"my_star":{"type":"boolean"},"run_ids":{"type":"array","items":{"type":"string"}},"claims":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string"},"category":{"type":["string","null"]},"trait_path":{"type":["string","null"]},"self_type":{"type":["string","null"]},"method_name":{"type":["string","null"]},"is_blanket":{"anyOf":[{"anyOf":[{"type":"number","const":0},{"type":"number","const":1}]},{"type":"null"}]},"claim_number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"report_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"api_item_id":{"type":"string"},"created_at":{"type":"string"},"report_revision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"precondition":{"type":"string"},"evidence_ref":{"anyOf":[{"type":"object","properties":{"run_id":{"type":"string","pattern":"^[a-f0-9]{8}(-[a-f0-9]{4}){3}-[a-f0-9]{12}$"},"harness":{"type":"string","minLength":1,"maxLength":1000}},"required":["run_id","harness"],"additionalProperties":false},{"type":"null"}]},"explanation":{"type":"string"},"trusted_assumptions":{"type":"string","description":"Displayed as What is trusted."},"evidence_url":{"type":"string"},"limitations":{"type":"string","description":"Displayed as Technical limitations."},"display_path":{"type":"string"},"is_unsafe":{"anyOf":[{"anyOf":[{"type":"number","const":0},{"type":"number","const":1}]},{"type":"null"}]},"origin":{"type":"string","enum":["rustdoc","recorded"]},"signature":{"type":"string"},"upstream_url":{"type":"string"},"author_id":{"type":["string","null"]},"withdrawn_at":{"type":["string","null"]},"visibility":{"type":"string"},"report_title":{"type":"string"},"shared_explanation":{"type":"string"},"shared_trusted_assumptions":{"type":"string","description":"Displayed as What is trusted."},"shared_evidence_url":{"type":"string"},"shared_limitations":{"type":"string","description":"Displayed as Technical limitations."},"environment":{"type":"string"},"tool_version_id":{"type":"string"},"crate":{"type":"string"},"version":{"type":"string"},"username":{"type":["string","null"]},"tool":{"type":"string"},"tool_version":{"type":"string"},"tool_limitations":{"type":"string","description":"Displayed as Technical limitations."},"tool_limitations_updated_at":{"type":["string","null"]},"latest_report_revision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"toolchain_json":{"type":["string","null"]},"star_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"report_star_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"report_comment_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"author_karma":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"in_current_report":{"anyOf":[{"type":"number","const":0},{"type":"number","const":1}]},"my_star":{"type":"boolean"}},"required":["id","kind","category","trait_path","self_type","method_name","is_blanket","claim_number","report_id","api_item_id","created_at","report_revision","position","title","precondition","explanation","trusted_assumptions","evidence_url","limitations","display_path","is_unsafe","signature","upstream_url","author_id","withdrawn_at","visibility","report_title","shared_explanation","shared_trusted_assumptions","shared_evidence_url","shared_limitations","environment","tool_version_id","crate","version","username","tool","tool_version","tool_limitations","tool_limitations_updated_at","latest_report_revision","star_count","report_star_count","report_comment_count","author_karma","in_current_report","my_star"]}}},"required":["id","release_id","author_id","visibility","withdrawn_at","created_at","updated_at","revision_no","title","explanation","trusted_assumptions","environment","evidence_url","limitations","tool_version_id","crate","version","yanked","username","tool_id","tool","tool_version","tool_limitations","tool_limitations_updated_at","latest_revision_no","comment_count","star_count","author_karma","claim_count","dependency_count","finding_count","dependencies","my_star","run_ids","claims"]}}}},"404":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/claims/{id}":{"get":{"operationId":"getApiV1ClaimsById","summary":"Read a claim","tags":["Claims"],"security":[{},{"session":[]},{"bearer":[]}],"parameters":[{"name":"report_revision","in":"query","required":false,"schema":{"type":"string"}},{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string"},"category":{"type":["string","null"]},"trait_path":{"type":["string","null"]},"self_type":{"type":["string","null"]},"method_name":{"type":["string","null"]},"is_blanket":{"anyOf":[{"anyOf":[{"type":"number","const":0},{"type":"number","const":1}]},{"type":"null"}]},"claim_number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"report_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"api_item_id":{"type":"string"},"created_at":{"type":"string"},"report_revision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"precondition":{"type":"string"},"evidence_ref":{"anyOf":[{"type":"object","properties":{"run_id":{"type":"string","pattern":"^[a-f0-9]{8}(-[a-f0-9]{4}){3}-[a-f0-9]{12}$"},"harness":{"type":"string","minLength":1,"maxLength":1000}},"required":["run_id","harness"],"additionalProperties":false},{"type":"null"}]},"explanation":{"type":"string"},"trusted_assumptions":{"type":"string","description":"Displayed as What is trusted."},"evidence_url":{"type":"string"},"limitations":{"type":"string","description":"Displayed as Technical limitations."},"display_path":{"type":"string"},"is_unsafe":{"anyOf":[{"anyOf":[{"type":"number","const":0},{"type":"number","const":1}]},{"type":"null"}]},"origin":{"type":"string","enum":["rustdoc","recorded"]},"signature":{"type":"string"},"upstream_url":{"type":"string"},"author_id":{"type":["string","null"]},"withdrawn_at":{"type":["string","null"]},"visibility":{"type":"string"},"report_title":{"type":"string"},"shared_explanation":{"type":"string"},"shared_trusted_assumptions":{"type":"string","description":"Displayed as What is trusted."},"shared_evidence_url":{"type":"string"},"shared_limitations":{"type":"string","description":"Displayed as Technical limitations."},"environment":{"type":"string"},"tool_version_id":{"type":"string"},"crate":{"type":"string"},"version":{"type":"string"},"username":{"type":["string","null"]},"tool":{"type":"string"},"tool_version":{"type":"string"},"tool_limitations":{"type":"string","description":"Displayed as Technical limitations."},"tool_limitations_updated_at":{"type":["string","null"]},"latest_report_revision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"toolchain_json":{"type":["string","null"]},"star_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"report_star_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"report_comment_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"author_karma":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"in_current_report":{"anyOf":[{"type":"number","const":0},{"type":"number","const":1}]},"my_star":{"type":"boolean"},"formal_evidence":{"anyOf":[{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"aeneas"},"version":{"type":"number","const":1},"theorem":{"type":"string","minLength":1,"maxLength":1000},"module":{"type":"string","minLength":1,"maxLength":1000},"statement":{"type":"string","minLength":1,"maxLength":1000000},"binders":{"maxItems":1000,"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"type_segments":{"maxItems":10000,"type":"array","items":{"type":"object","properties":{"text":{"type":"string","maxLength":1000000},"ref":{"type":"string","minLength":1,"maxLength":1000}},"required":["text"],"additionalProperties":false}},"kind":{"type":"string","enum":["variable","hypothesis","instance"]},"binder":{"type":"string"}},"required":["name","type","kind","binder"],"additionalProperties":false}},"conclusion":{"type":"string","minLength":1,"maxLength":1000000},"conclusion_segments":{"maxItems":10000,"type":"array","items":{"type":"object","properties":{"text":{"type":"string","maxLength":1000000},"ref":{"type":"string","minLength":1,"maxLength":1000}},"required":["text"],"additionalProperties":false}},"program":{"type":["string","null"]},"program_head":{"type":["string","null"]},"axioms":{"maxItems":100,"type":"array","items":{"type":"string"}},"mapping":{"type":"string","enum":["manual","manifest"]},"manifest":{"anyOf":[{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":1000},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"aeneas_version":{"type":"string"},"charon_version":{"type":"string"},"entry":{"type":"object","properties":{"lean_name":{"type":"string","minLength":1},"lean_file":{"type":"string","minLength":1},"rust_name":{"type":"string","minLength":1},"def_id":{"type":"integer","minimum":0,"maximum":9007199254740991},"is_local":{"type":"boolean","const":true},"source":{"type":"object","properties":{"file":{"type":"string"},"begin_line":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"end_line":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["file","begin_line","end_line"],"additionalProperties":{}}},"required":["lean_name","lean_file","rust_name","def_id","is_local","source"],"additionalProperties":{}}},"required":["path","sha256","aeneas_version","charon_version","entry"],"additionalProperties":false},{"type":"null"}]},"source":{"type":"object","properties":{"file":{"type":"string"},"first_line":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"last_line":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["file","first_line","last_line"],"additionalProperties":false},"definitions":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"module":{"type":"string"},"source":{"anyOf":[{"type":"object","properties":{"file":{"type":"string"},"first_line":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"last_line":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["file","first_line","last_line"],"additionalProperties":false},{"type":"null"}]},"source_url":{"type":["string","null"]}},"required":["name","module","source_url"],"additionalProperties":false}},"definitions_truncated":{"type":"boolean"},"translation_rerun":{"type":"boolean","const":false},"source_url":{"type":"string"},"check_url":{"type":"string"}},"required":["version","theorem","module","statement","binders","conclusion","program","program_head","axioms","mapping","manifest","source","definitions","definitions_truncated","translation_rerun","source_url","check_url"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"creusot"},"version":{"type":"number","const":1},"signature":{"type":"string","minLength":1,"maxLength":1000000},"requires":{"maxItems":1000,"type":"array","items":{"type":"string","minLength":1,"maxLength":1000000}},"ensures":{"maxItems":1000,"type":"array","items":{"type":"string","minLength":1,"maxLength":1000000}},"source":{"type":"object","properties":{"file":{"type":"string"},"first_line":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"last_line":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["file","first_line","last_line"],"additionalProperties":false},"source_url":{"type":"string"},"check_url":{"type":"string"}},"required":["kind","version","signature","requires","ensures","source","source_url","check_url"],"additionalProperties":false}]},{"type":"null"}]}},"required":["id","kind","category","trait_path","self_type","method_name","is_blanket","claim_number","report_id","api_item_id","created_at","report_revision","position","title","precondition","explanation","trusted_assumptions","evidence_url","limitations","display_path","is_unsafe","signature","upstream_url","author_id","withdrawn_at","visibility","report_title","shared_explanation","shared_trusted_assumptions","shared_evidence_url","shared_limitations","environment","tool_version_id","crate","version","username","tool","tool_version","tool_limitations","tool_limitations_updated_at","latest_report_revision","star_count","report_star_count","report_comment_count","author_karma","in_current_report","my_star"]}}}},"404":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/reports/validate":{"post":{"operationId":"postApiV1ReportsValidate","summary":"Validate a report without publishing","tags":["Reports"],"security":[{"session":[],"csrf":[]},{"bearer":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"crate":{"type":"string","minLength":1,"maxLength":100},"version":{"type":"string","minLength":1,"maxLength":100},"tool_version_id":{"type":"string","minLength":1,"maxLength":200},"title":{"type":"string","minLength":1,"maxLength":1000},"explanation":{"type":"string","maxLength":10000},"trusted_assumptions":{"type":"string","maxLength":10000},"environment":{"type":"string","maxLength":10000},"evidence_url":{"type":"string","maxLength":1000},"limitations":{"type":"string","maxLength":10000},"claims":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":100},"api_item_id":{"type":"string","minLength":1,"maxLength":200},"title":{"type":"string","maxLength":1000},"precondition":{"default":"","type":"string","maxLength":10000},"evidence_ref":{"anyOf":[{"type":"object","properties":{"run_id":{"type":"string","pattern":"^[a-f0-9]{8}(-[a-f0-9]{4}){3}-[a-f0-9]{12}$"},"harness":{"type":"string","minLength":1,"maxLength":1000}},"required":["run_id","harness"],"additionalProperties":false},{"type":"null"}]},"explanation":{"type":"string","maxLength":10000},"trusted_assumptions":{"type":"string","maxLength":10000},"evidence_url":{"type":"string","maxLength":1000},"limitations":{"type":"string","maxLength":10000}},"required":["api_item_id"]}},"run_ids":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string"}},"dependencies":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"crate":{"type":"string","minLength":1,"maxLength":100},"report":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"string","pattern":"^\\d+$"}]},"revision":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"string","pattern":"^\\d+$"}]}},"required":["crate","report","revision"],"additionalProperties":false}},"findings":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":1000},"body":{"type":"string","minLength":1,"maxLength":10000},"evidence_url":{"anyOf":[{"type":"string","maxLength":2000,"format":"uri"},{"type":"null"}]},"api_item_ids":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}}},"required":["title","body"],"additionalProperties":false}},"report_id":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"string","pattern":"^\\d+$"}]}},"required":["crate","version","tool_version_id","title","claims","run_ids"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"release_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"crate":{"type":"string"},"version":{"type":"string"},"title":{"type":"string"},"explanation":{"type":"string"},"trusted_assumptions":{"type":"string","description":"Displayed as What is trusted."},"environment":{"type":"string"},"evidence_url":{"type":"string"},"limitations":{"type":"string","description":"Displayed as Technical limitations."},"tool_version_id":{"type":"string"},"tool":{"type":"string"},"tool_version":{"type":"string"},"claims":{"type":"array","items":{"type":"object","properties":{"evidence_ref":{"anyOf":[{"type":"object","properties":{"run_id":{"type":"string","pattern":"^[a-f0-9]{8}(-[a-f0-9]{4}){3}-[a-f0-9]{12}$"},"harness":{"type":"string","minLength":1,"maxLength":1000}},"required":["run_id","harness"],"additionalProperties":false},{"type":"null"}]},"id":{"type":["string","null"]},"api_item_id":{"type":"string"},"title":{"type":"string"},"precondition":{"type":"string"},"explanation":{"type":"string"},"trusted_assumptions":{"type":"string","description":"Displayed as What is trusted."},"evidence_url":{"type":"string"},"limitations":{"type":"string","description":"Displayed as Technical limitations."},"display_path":{"type":"string"},"is_unsafe":{"anyOf":[{"anyOf":[{"type":"number","const":0},{"type":"number","const":1}]},{"type":"null"}]},"origin":{"type":"string","enum":["rustdoc","recorded"]},"signature":{"type":"string"}},"required":["id","api_item_id","title","precondition","explanation","trusted_assumptions","evidence_url","limitations","display_path","is_unsafe","signature"]}},"run_ids":{"type":"array","items":{"type":"string"}},"dependencies":{"type":"array","items":{"type":"object","properties":{"crate":{"type":"string"},"version":{"type":"string"},"report":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"revision":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"withdrawn":{"type":"boolean"}},"required":["crate","version","report","revision","withdrawn"]}},"findings":{"type":"array","items":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":1000},"body":{"type":"string","minLength":1,"maxLength":10000},"evidence_url":{"anyOf":[{"type":"string","maxLength":2000,"format":"uri"},{"type":"null"}]},"api_item_ids":{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}}},"required":["title","body"],"additionalProperties":false}},"changes":{"type":"object","properties":{"added":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"retained":{"type":"array","items":{"type":"string"}},"removed":{"type":"array","items":{"type":"string"}}},"required":["added","retained","removed"]}},"required":["release_id","crate","version","title","explanation","trusted_assumptions","environment","evidence_url","limitations","tool_version_id","tool","tool_version","claims","run_ids","dependencies","changes"]}}}},"400":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/reports/{id}/withdrawal":{"put":{"operationId":"putApiV1ReportsByIdWithdrawal","summary":"Withdraw a report","tags":["Reports"],"security":[{"session":[],"csrf":[]}],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"]}}}},"404":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/reports/{id}/stars":{"get":{"operationId":"getApiV1ReportsByIdStars","summary":"List report stars","tags":["Reports"],"security":[{},{"session":[]},{"bearer":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"description":"Opaque next_cursor from the previous page; omit for the first page.","type":"string"}},{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"username":{"type":"string"},"created_at":{"type":"string"}},"required":["id","username","created_at"]}},"next_cursor":{"type":["string","null"]}},"required":["items","next_cursor"]}}}},"404":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/reports/{id}/star":{"put":{"operationId":"putApiV1ReportsByIdStar","summary":"Set or remove a report star","tags":["Reports"],"security":[{"session":[],"csrf":[]}],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"]}}}},"404":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteApiV1ReportsByIdStar","summary":"Set or remove a report star","tags":["Reports"],"security":[{"session":[],"csrf":[]}],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"]}}}},"404":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/claims/{id}/stars":{"get":{"operationId":"getApiV1ClaimsByIdStars","summary":"List claim stars","tags":["Claims"],"security":[{},{"session":[]},{"bearer":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"description":"Opaque next_cursor from the previous page; omit for the first page.","type":"string"}},{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"username":{"type":"string"},"created_at":{"type":"string"}},"required":["id","username","created_at"]}},"next_cursor":{"type":["string","null"]}},"required":["items","next_cursor"]}}}},"404":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/claims/{id}/star":{"put":{"operationId":"putApiV1ClaimsByIdStar","summary":"Set or remove a claim star","tags":["Claims"],"security":[{"session":[],"csrf":[]}],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"]}}}},"404":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteApiV1ClaimsByIdStar","summary":"Set or remove a claim star","tags":["Claims"],"security":[{"session":[],"csrf":[]}],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"]}}}},"404":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/reports/{id}/comments":{"get":{"operationId":"getApiV1ReportsByIdComments","summary":"List report comments or replies","tags":["Comments"],"security":[{},{"session":[]},{"bearer":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"description":"Opaque next_cursor from the previous page; omit for the first page.","type":"string"}},{"name":"parent_id","in":"query","required":false,"schema":{"type":"string"}},{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Comment"}},"next_cursor":{"type":["string","null"]}},"required":["items","next_cursor"]}}}},"404":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"operationId":"postApiV1ReportsByIdComments","summary":"Post a report comment","tags":["Comments"],"security":[{"session":[],"csrf":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","pattern":"^[a-zA-Z0-9_-]{16,100}$"}},{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string","minLength":1,"maxLength":5000},"revision_no":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"string","pattern":"^\\d+$"}]},"reply_to_id":{"anyOf":[{"type":"string","maxLength":100},{"type":"null"}]}},"required":["body","revision_no"]}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"404":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"428":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/comments/{id}":{"get":{"operationId":"getApiV1CommentsById","summary":"Read a comment and its ancestors","tags":["Comments"],"security":[],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"report_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"sequence_no":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"revision_no":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"author_id":{"type":["string","null"]},"reply_to_id":{"type":["string","null"]},"body":{"type":["string","null"]},"edit_version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"created_at":{"type":"string"},"edited_at":{"type":["string","null"]},"deleted_at":{"type":["string","null"]},"username":{"type":["string","null"]},"score":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"my_vote":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"reply_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"hidden":{"type":"boolean"},"ancestors":{"type":"array","items":{"type":"string"}}},"required":["id","report_id","sequence_no","revision_no","author_id","reply_to_id","body","edit_version","created_at","edited_at","deleted_at","username","score","my_vote","reply_count","hidden","ancestors"]}}}},"404":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"patch":{"operationId":"patchApiV1CommentsById","summary":"Edit a comment","tags":["Comments"],"security":[{"session":[],"csrf":[]}],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"edit_version":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"string","pattern":"^\\d+$"}]},"body":{"type":"string","minLength":1,"maxLength":5000}},"required":["edit_version","body"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true},"edit_version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["ok","edit_version"]}}}},"404":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteApiV1CommentsById","summary":"Delete a comment","tags":["Comments"],"security":[{"session":[],"csrf":[]}],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"edit_version":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"string","pattern":"^\\d+$"}]}},"required":["edit_version"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true},"edit_version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["ok","edit_version"]}}}},"404":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/comments/{id}/vote":{"put":{"operationId":"putApiV1CommentsByIdVote","summary":"Vote on a comment","tags":["Comments"],"security":[{"session":[],"csrf":[]}],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"value":{"anyOf":[{"type":"number","const":-1},{"type":"number","const":1}]}},"required":["value"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"]}}}},"404":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"operationId":"deleteApiV1CommentsByIdVote","summary":"Remove a comment vote","tags":["Comments"],"security":[{"session":[],"csrf":[]}],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"]}}}},"404":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/users/{id}":{"get":{"operationId":"getApiV1UsersById","summary":"Read a public user profile","tags":["Account"],"description":"Accepts a user ID or username.","security":[],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"username":{"type":"string"},"created_at":{"type":"string"},"karma":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"algorithm_version":{"type":"string"}},"required":["id","username","created_at","karma","algorithm_version"]}}}},"404":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/users/{id}/reports":{"get":{"operationId":"getApiV1UsersByIdReports","summary":"List reports by user","tags":["Account"],"security":[],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"description":"Opaque next_cursor from the previous page; omit for the first page.","type":"string"}},{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Report"}},"next_cursor":{"type":["string","null"]}},"required":["items","next_cursor"]}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/users/{id}/comments":{"get":{"operationId":"getApiV1UsersByIdComments","summary":"List comments by user","tags":["Comments"],"security":[],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"description":"Opaque next_cursor from the previous page; omit for the first page.","type":"string"}},{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Comment"}},"next_cursor":{"type":["string","null"]}},"required":["items","next_cursor"]}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/me/reports":{"get":{"operationId":"getApiV1MeReports","summary":"List reports by user","tags":["Account"],"security":[{"session":[]},{"bearer":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"description":"Opaque next_cursor from the previous page; omit for the first page.","type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Report"}},"next_cursor":{"type":["string","null"]}},"required":["items","next_cursor"]}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/me/comments":{"get":{"operationId":"getApiV1MeComments","summary":"List comments by user","tags":["Comments"],"security":[{"session":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"description":"Opaque next_cursor from the previous page; omit for the first page.","type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Comment"}},"next_cursor":{"type":["string","null"]}},"required":["items","next_cursor"]}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/me/starred-reports":{"get":{"operationId":"getApiV1MeStarredReports","summary":"List my starred reports","tags":["Account"],"security":[{"session":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"description":"Opaque next_cursor from the previous page; omit for the first page.","type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"release_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"author_id":{"type":["string","null"]},"visibility":{"type":"string"},"withdrawn_at":{"type":["string","null"]},"created_at":{"type":"string"},"updated_at":{"type":"string"},"revision_no":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"explanation":{"type":"string"},"trusted_assumptions":{"type":"string","description":"Displayed as What is trusted."},"environment":{"type":"string"},"evidence_url":{"type":"string"},"limitations":{"type":"string","description":"Displayed as Technical limitations."},"tool_version_id":{"type":"string"},"crate":{"type":"string"},"version":{"type":"string"},"yanked":{"anyOf":[{"type":"number","const":0},{"type":"number","const":1}]},"username":{"type":["string","null"]},"tool_id":{"type":"string","description":"Tool slug, usable as the tool filter."},"tool":{"type":"string"},"tool_version":{"type":"string"},"toolchains_json":{"type":["string","null"]},"tool_limitations":{"type":"string","description":"Displayed as Technical limitations."},"tool_limitations_updated_at":{"type":["string","null"]},"latest_revision_no":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"comment_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"star_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"author_karma":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"claim_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"dependency_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"finding_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Findings other than invalid or duplicate; 0 once withdrawn."},"starred_at":{"type":"string"}},"required":["id","release_id","author_id","visibility","withdrawn_at","created_at","updated_at","revision_no","title","explanation","trusted_assumptions","environment","evidence_url","limitations","tool_version_id","crate","version","yanked","username","tool_id","tool","tool_version","tool_limitations","tool_limitations_updated_at","latest_revision_no","comment_count","star_count","author_karma","claim_count","dependency_count","finding_count","starred_at"]}},"next_cursor":{"type":["string","null"]}},"required":["items","next_cursor"]}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/me/starred-claims":{"get":{"operationId":"getApiV1MeStarredClaims","summary":"List my starred claims","tags":["Account"],"security":[{"session":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"description":"Opaque next_cursor from the previous page; omit for the first page.","type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string"},"category":{"type":["string","null"]},"trait_path":{"type":["string","null"]},"self_type":{"type":["string","null"]},"method_name":{"type":["string","null"]},"is_blanket":{"anyOf":[{"anyOf":[{"type":"number","const":0},{"type":"number","const":1}]},{"type":"null"}]},"claim_number":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"report_id":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"api_item_id":{"type":"string"},"created_at":{"type":"string"},"report_revision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"precondition":{"type":"string"},"evidence_ref":{"anyOf":[{"type":"object","properties":{"run_id":{"type":"string","pattern":"^[a-f0-9]{8}(-[a-f0-9]{4}){3}-[a-f0-9]{12}$"},"harness":{"type":"string","minLength":1,"maxLength":1000}},"required":["run_id","harness"],"additionalProperties":false},{"type":"null"}]},"explanation":{"type":"string"},"trusted_assumptions":{"type":"string","description":"Displayed as What is trusted."},"evidence_url":{"type":"string"},"limitations":{"type":"string","description":"Displayed as Technical limitations."},"display_path":{"type":"string"},"is_unsafe":{"anyOf":[{"anyOf":[{"type":"number","const":0},{"type":"number","const":1}]},{"type":"null"}]},"origin":{"type":"string","enum":["rustdoc","recorded"]},"signature":{"type":"string"},"upstream_url":{"type":"string"},"author_id":{"type":["string","null"]},"withdrawn_at":{"type":["string","null"]},"visibility":{"type":"string"},"report_title":{"type":"string"},"shared_explanation":{"type":"string"},"shared_trusted_assumptions":{"type":"string","description":"Displayed as What is trusted."},"shared_evidence_url":{"type":"string"},"shared_limitations":{"type":"string","description":"Displayed as Technical limitations."},"environment":{"type":"string"},"tool_version_id":{"type":"string"},"crate":{"type":"string"},"version":{"type":"string"},"username":{"type":["string","null"]},"tool":{"type":"string"},"tool_version":{"type":"string"},"tool_limitations":{"type":"string","description":"Displayed as Technical limitations."},"tool_limitations_updated_at":{"type":["string","null"]},"latest_report_revision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"toolchain_json":{"type":["string","null"]},"star_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"report_star_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"report_comment_count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"author_karma":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"in_current_report":{"anyOf":[{"type":"number","const":0},{"type":"number","const":1}]},"starred_at":{"type":"string"}},"required":["id","kind","category","trait_path","self_type","method_name","is_blanket","claim_number","report_id","api_item_id","created_at","report_revision","position","title","precondition","explanation","trusted_assumptions","evidence_url","limitations","display_path","is_unsafe","signature","upstream_url","author_id","withdrawn_at","visibility","report_title","shared_explanation","shared_trusted_assumptions","shared_evidence_url","shared_limitations","environment","tool_version_id","crate","version","username","tool","tool_version","tool_limitations","tool_limitations_updated_at","latest_report_revision","star_count","report_star_count","report_comment_count","author_karma","in_current_report","starred_at"]}},"next_cursor":{"type":["string","null"]}},"required":["items","next_cursor"]}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/tools":{"get":{"operationId":"getApiV1Tools","summary":"List verification tools and versions","tags":["Tools"],"security":[{},{"session":[]},{"bearer":[]}],"parameters":[],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Tool"}},"versions":{"type":"array","items":{"$ref":"#/components/schemas/ToolVersion"}}},"required":["items","versions"]}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/tool-versions/{id}":{"get":{"operationId":"getApiV1ToolVersionsById","summary":"Read a tool version","tags":["Tools"],"security":[],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"tool_id":{"type":"string"},"version":{"type":"string"},"selectable":{"anyOf":[{"type":"number","const":0},{"type":"number","const":1}]},"limitations":{"type":"string","description":"Displayed as Technical limitations."},"limitations_updated_at":{"type":["string","null"]},"tool":{"type":"string"}},"required":["id","tool_id","version","selectable","limitations","limitations_updated_at","tool"]}}}},"404":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/tool-versions/{id}/reports":{"get":{"operationId":"getApiV1ToolVersionsByIdReports","summary":"List reports for a tool version","tags":["Reports"],"security":[],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"description":"Opaque next_cursor from the previous page; omit for the first page.","type":"string"}},{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Report"}},"next_cursor":{"type":["string","null"]}},"required":["items","next_cursor"]}}}},"404":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/tools/{slug}":{"get":{"operationId":"getApiV1ToolsBySlug","summary":"Read a tool and its versions","tags":["Tools"],"security":[{},{"session":[]},{"bearer":[]}],"parameters":[{"schema":{"type":"string"},"in":"path","name":"slug","required":true}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"official_url":{"type":"string"},"active":{"anyOf":[{"type":"number","const":0},{"type":"number","const":1}]},"versions":{"type":"array","items":{"$ref":"#/components/schemas/ToolVersion"}}},"required":["id","name","description","official_url","active","versions"]}}}},"404":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/tools/{slug}/reports":{"get":{"operationId":"getApiV1ToolsBySlugReports","summary":"List reports for a tool","tags":["Reports"],"security":[{},{"session":[]},{"bearer":[]}],"parameters":[{"name":"cursor","in":"query","required":false,"schema":{"description":"Opaque next_cursor from the previous page; omit for the first page.","type":"string"}},{"schema":{"type":"string"},"in":"path","name":"slug","required":true}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"$ref":"#/components/schemas/Report"}},"next_cursor":{"type":["string","null"]}},"required":["items","next_cursor"]}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/resolve-api":{"get":{"operationId":"getApiV1ResolveApi","summary":"Resolve a crate API path to its ID","tags":["APIs"],"security":[{},{"session":[]},{"bearer":[]}],"parameters":[{"name":"crate","in":"query","required":true,"schema":{"type":"string"}},{"name":"version","in":"query","required":true,"schema":{"type":"string"}},{"name":"path","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"}},"required":["id"]}}}},"404":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/publish/prepare":{"post":{"operationId":"postApiV1PublishPrepare","summary":"Prepare a crate release for publishing","tags":["Imports"],"security":[{"session":[],"csrf":[]},{"bearer":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"crate":{"type":"string","minLength":1,"maxLength":64},"version":{"type":"string","minLength":1,"maxLength":100}},"required":["crate","version"]}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","const":"ready"},"crate":{"type":"string"},"version":{"type":"string"},"catalog_warnings":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"id":{"type":"string"},"reason":{"type":"string","const":"missing_reexport_target"}},"required":["path","id","reason"]}}},"required":["status","crate","version"]}}}},"202":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string","enum":["pending","running","retry"]}},"required":["id","status"]}}}},"400":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"428":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/v1/imports/{id}":{"get":{"operationId":"getApiV1ImportsById","summary":"Read crate import status","tags":["Imports"],"security":[{"session":[]},{"bearer":[]}],"parameters":[{"schema":{"type":"string"},"in":"path","name":"id","required":true}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"status":{"type":"string"},"error_code":{"type":["string","null"]},"crate":{"type":"string"},"version":{"type":"string"},"catalog_warnings":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"id":{"type":"string"},"reason":{"type":"string","const":"missing_reexport_target"}},"required":["path","id","reason"]}}},"required":["id","status","error_code","crate","version","catalog_warnings"]}}}},"404":{"description":"Request failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"default":{"description":"Request failed; error identifies the reason.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}