{"openapi":"3.2.0","info":{"title":"Resguarda API","version":"1.2.0-candidate","description":"Provider-neutral API for eligible tests, evidence requests, and read-only asset, risk and vendor registers in the token organization. Upload a bounded file with a durable retry key, then read separate review, result, and coverage states. See the public guide for credentials and recovery."},"externalDocs":{"description":"Resguarda API integration guide","url":"/api-docs"},"servers":[{"url":"/","description":"Resguarda application origin"}],"security":[{"bearerToken":[]}],"tags":[{"name":"Assets","description":"Read assets in the workspace inventory."},{"name":"Risks","description":"Read risks and their assessment scores."},{"name":"Vendors","description":"Read vendors and their review status."},{"name":"Tests","description":"Read eligible compliance tests."},{"name":"Evidence","description":"Discover existing evidence requests, submit a file, and read back its status."}],"paths":{"/api/v1/assets":{"get":{"operationId":"listAssets","tags":["Assets"],"summary":"List assets","description":"Searches names and source asset IDs. Sorts by name, then ID. Requires asset:read. Unknown query parameters are rejected.","x-required-scopes":["asset:read"],"parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1}},{"name":"pageSize","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"q","in":"query","schema":{"type":"string","maxLength":200}},{"name":"assetType","in":"query","schema":{"$ref":"#/components/schemas/AssetType"}},{"name":"status","in":"query","schema":{"$ref":"#/components/schemas/AssetStatus"}},{"name":"criticality","in":"query","schema":{"$ref":"#/components/schemas/RegisterCriticality"}},{"name":"ownerMembershipId","in":"query","schema":{"type":"string","minLength":1,"maxLength":200}}],"responses":{"200":{"description":"One page of visible assets","headers":{"Cache-Control":{"$ref":"#/components/headers/NoStore"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetPage"}}}},"400":{"$ref":"#/components/responses/InvalidRegisterQuery"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/UnexpectedError"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/api/v1/assets/{id}":{"get":{"operationId":"getAsset","tags":["Assets"],"summary":"Read one asset","description":"Returns the current projection and a strong revision ETag. Missing, deleted and foreign IDs share the same 404. Requires asset:read. Unknown query parameters are rejected.","x-required-scopes":["asset:read"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"pattern":"^[A-Za-z0-9_-]+$"}}],"responses":{"200":{"description":"Current asset detail","headers":{"Cache-Control":{"$ref":"#/components/headers/NoStore"},"ETag":{"$ref":"#/components/headers/RegisterETag"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AssetDetail"}}}},"400":{"$ref":"#/components/responses/InvalidRegisterQuery"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/UnexpectedError"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/api/v1/risks":{"get":{"operationId":"listRisks","tags":["Risks"],"summary":"List risks","description":"Searches titles and risk codes. Band uses the organization's thresholds for the selected axis. Sorts by title, then ID. Requires risk:read. Unknown query parameters are rejected.","x-required-scopes":["risk:read"],"parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1}},{"name":"pageSize","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"q","in":"query","schema":{"type":"string","maxLength":200}},{"name":"status","in":"query","schema":{"$ref":"#/components/schemas/RegisterRiskStatus"}},{"name":"ownerMembershipId","in":"query","schema":{"type":"string","minLength":1,"maxLength":200}},{"name":"band","in":"query","schema":{"$ref":"#/components/schemas/RegisterCriticality"}},{"name":"axis","in":"query","schema":{"type":"string","enum":["inherent","residual"],"default":"inherent"}}],"responses":{"200":{"description":"One page of visible risks","headers":{"Cache-Control":{"$ref":"#/components/headers/NoStore"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RiskPage"}}}},"400":{"$ref":"#/components/responses/InvalidRegisterQuery"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/UnexpectedError"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/api/v1/risks/{id}":{"get":{"operationId":"getRisk","tags":["Risks"],"summary":"Read one risk","description":"Returns the current projection and a strong revision ETag. Missing, deleted and foreign IDs share the same 404. Requires risk:read. Unknown query parameters are rejected.","x-required-scopes":["risk:read"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"pattern":"^[A-Za-z0-9_-]+$"}}],"responses":{"200":{"description":"Current risk detail","headers":{"Cache-Control":{"$ref":"#/components/headers/NoStore"},"ETag":{"$ref":"#/components/headers/RegisterETag"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RiskDetail"}}}},"400":{"$ref":"#/components/responses/InvalidRegisterQuery"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/UnexpectedError"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/api/v1/vendors":{"get":{"operationId":"listVendors","tags":["Vendors"],"summary":"List vendors","description":"Searches names, descriptions and services. Sorts by name, then ID. When filtering overdue reviews, a candidate page can be empty or short with hasMore=true. Continue until hasMore=false or the page limit is reached. Requires vendor:read. Unknown query parameters are rejected.","x-required-scopes":["vendor:read"],"parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1}},{"name":"pageSize","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}},{"name":"q","in":"query","schema":{"type":"string","maxLength":200}},{"name":"lifecycleStatus","in":"query","schema":{"$ref":"#/components/schemas/VendorLifecycle"}},{"name":"criticality","in":"query","schema":{"$ref":"#/components/schemas/RegisterCriticality"}},{"name":"reviewOverdue","in":"query","schema":{"type":"boolean","description":"True selects overdue reviews under the organization's cadence. False omits this filter."}}],"responses":{"200":{"description":"One page of visible vendors","headers":{"Cache-Control":{"$ref":"#/components/headers/NoStore"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VendorPage"}}}},"400":{"$ref":"#/components/responses/InvalidRegisterQuery"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/UnexpectedError"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/api/v1/vendors/{id}":{"get":{"operationId":"getVendor","tags":["Vendors"],"summary":"Read one vendor","description":"Returns the current projection and a strong revision ETag. Missing, deleted and foreign IDs share the same 404. Requires vendor:read. Unknown query parameters are rejected.","x-required-scopes":["vendor:read"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1,"pattern":"^[A-Za-z0-9_-]+$"}}],"responses":{"200":{"description":"Current vendor detail","headers":{"Cache-Control":{"$ref":"#/components/headers/NoStore"},"ETag":{"$ref":"#/components/headers/RegisterETag"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VendorDetail"}}}},"400":{"$ref":"#/components/responses/InvalidRegisterQuery"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/UnexpectedError"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/api/v1/tests":{"get":{"operationId":"listTests","tags":["Tests"],"x-required-scopes":["control_test:read"],"summary":"List eligible tests in the token's organization","description":"Requires control_test:read. Cookies cannot select an organization. Pages examine a bounded candidate set before eligibility filtering, so an empty or short page can still have hasMore=true. Continue by increasing page until hasMore=false, up to page 10000. Results are not a snapshot of concurrent changes.","parameters":[{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1}},{"name":"pageSize","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}}],"responses":{"200":{"description":"Eligible test metadata. Raw source records, evidence contents and personnel data are excluded.","headers":{"Cache-Control":{"$ref":"#/components/headers/NoStore"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/TestPage"},"examples":{"emptyWorkspace":{"summary":"No eligible tests","value":{"items":[],"page":1,"pageSize":1,"hasMore":false}}}}}},"400":{"$ref":"#/components/responses/InvalidQuery"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/UnexpectedError"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/api/v1/tests/{id}":{"get":{"operationId":"getTest","tags":["Tests"],"x-required-scopes":["control_test:read"],"summary":"Read one eligible test in the token's organization","description":"Requires control_test:read. Missing, foreign, disabled, deleted and ineligible tests all return 404.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"Eligible test metadata","headers":{"Cache-Control":{"$ref":"#/components/headers/NoStore"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Test"}}}},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/UnexpectedError"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/api/v1/tests/{id}/evidence-requests":{"get":{"operationId":"listTestEvidenceRequests","tags":["Evidence"],"x-required-scopes":["control_test:read","evidence:submit"],"summary":"Discover existing eligible requests for one test","description":"Requires control_test:read and evidence:submit. Returns OPEN/REJECTED requests whose stored scope is currently valid. Pagination examines bounded candidates and may return an empty page with hasMore=true.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"page","in":"query","schema":{"type":"integer","minimum":1,"maximum":10000,"default":1}},{"name":"pageSize","in":"query","schema":{"type":"integer","minimum":1,"maximum":100,"default":25}}],"responses":{"200":{"description":"Eligible request metadata","headers":{"Cache-Control":{"$ref":"#/components/headers/NoStore"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvidenceRequestPage"}}}},"400":{"$ref":"#/components/responses/InvalidQuery"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/UnexpectedError"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/api/v1/evidence-requests/{id}/submissions":{"post":{"operationId":"submitEvidence","tags":["Evidence"],"x-required-scopes":["evidence:submit"],"summary":"Upload evidence for an existing request","description":"Requires evidence:submit. File limit 4 MiB (4,194,304 bytes); complete multipart body limit 4,400,000 bytes. Exactly one file and title plus optional note. The server derives organization and context. Reuse the same key and content on retries. Initial success and completed replay return the same stable ID shape. The receipt confirms submission; read state separately. Historical requests retain their submissions without replacing the current test result. Only the current request, selected by creation time then request ID, can trigger automatic document-supply evaluation. Requester notifications are transactional and are not repeated on completed replays. No approval or arbitrary result write is performed.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"Idempotency-Key","in":"header","required":true,"schema":{"type":"string","minLength":1,"maxLength":128,"pattern":"^[A-Za-z0-9._:-]{1,128}$"},"description":"Organization-wide unique key. A completed matching retry returns the original IDs. A pending retry across rotation requires the same issuer."}],"requestBody":{"required":true,"content":{"multipart/form-data":{"schema":{"type":"object","additionalProperties":false,"required":["file","title"],"properties":{"file":{"description":"Raw file bytes in their own part, sent with the caller's media type and file name. Nonempty, at most 4,194,304 bytes. Allowed types: pdf, docx, xlsx, pptx, odt, txt, md, csv, png, jpg, jpeg, webp; the content must match the extension. Archives, macro-enabled or legacy Office files and active content are rejected."},"title":{"type":"string","minLength":1,"maxLength":200},"note":{"type":"string","maxLength":2000}}},"encoding":{"file":{"contentType":"*/*"}}}}},"responses":{"200":{"description":"Submission recorded, or matching completed receipt replayed","headers":{"Cache-Control":{"$ref":"#/components/headers/NoStore"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/UploadReceipt"}}}},"400":{"$ref":"#/components/responses/InvalidUpload"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"409":{"$ref":"#/components/responses/Conflict"},"413":{"$ref":"#/components/responses/TooLarge"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/UnexpectedError"},"503":{"$ref":"#/components/responses/Unavailable"}}}},"/api/v1/evidence-requests/{id}":{"get":{"operationId":"getEvidenceRequestStatus","tags":["Evidence"],"x-required-scopes":["evidence:submit"],"summary":"Read separate submission, artifact, result, and coverage states","description":"Requires evidence:submit. Optional submissionId selects the exact submission returned by upload; omission selects latest. An empty request has null submission/evidence. A passing document-supply result can coexist with IN_REVIEW and an unapproved artifact. No file bytes, storage keys, download URLs, or reviewer identity fields are returned.","parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","minLength":1}},{"name":"submissionId","in":"query","schema":{"type":"string","minLength":1,"maxLength":128}}],"responses":{"200":{"description":"Fresh request and exact-version status projections","headers":{"Cache-Control":{"$ref":"#/components/headers/NoStore"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvidenceRequestStatus"}}}},"400":{"$ref":"#/components/responses/InvalidQuery"},"401":{"$ref":"#/components/responses/Unauthenticated"},"403":{"$ref":"#/components/responses/Forbidden"},"404":{"$ref":"#/components/responses/NotFound"},"429":{"$ref":"#/components/responses/RateLimited"},"500":{"$ref":"#/components/responses/UnexpectedError"},"503":{"$ref":"#/components/responses/Unavailable"}}}}},"components":{"securitySchemes":{"bearerToken":{"type":"http","scheme":"bearer","bearerFormat":"Opaque 43-character base64url secret","description":"Available scopes are control_test:read, evidence:submit, asset:read, risk:read and vendor:read. Each operation states its required scopes. Tokens must be unexpired and unrevoked; organization and issuing Owner/Admin must remain active. Browser sessions cannot authenticate these endpoints."}},"headers":{"RegisterETag":{"description":"Strong, quoted revision validator for this detail representation.","required":true,"schema":{"type":"string","pattern":"^\"[a-f0-9]{64}\"$"}},"NoStore":{"description":"Applied to success and error responses","schema":{"type":"string","const":"private, no-store"}},"RetryAfter":{"description":"Minimum delay in seconds before retrying","schema":{"type":"integer","minimum":1}}},"responses":{"InvalidRegisterQuery":{"description":"VALIDATION: invalid or unsupported query parameter","headers":{"Cache-Control":{"$ref":"#/components/headers/NoStore"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"InvalidQuery":{"description":"VALIDATION: invalid page or pageSize","headers":{"Cache-Control":{"$ref":"#/components/headers/NoStore"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unauthenticated":{"description":"UNAUTHENTICATED: missing, malformed, unknown, expired or revoked token, or inactive issuer/organization","headers":{"Cache-Control":{"$ref":"#/components/headers/NoStore"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Forbidden":{"description":"FORBIDDEN: a valid token lacks the required scope","headers":{"Cache-Control":{"$ref":"#/components/headers/NoStore"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"NotFound":{"description":"NOT_FOUND: no visible eligible resource matches the ID","headers":{"Cache-Control":{"$ref":"#/components/headers/NoStore"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"RateLimited":{"description":"RATE_LIMITED: an applicable IP, token or organization budget is exhausted","headers":{"Cache-Control":{"$ref":"#/components/headers/NoStore"},"Retry-After":{"$ref":"#/components/headers/RetryAfter"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Unavailable":{"description":"SERVICE_UNAVAILABLE: database or limiter temporarily unavailable","headers":{"Cache-Control":{"$ref":"#/components/headers/NoStore"},"Retry-After":{"$ref":"#/components/headers/RetryAfter"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"UnexpectedError":{"description":"INTERNAL: an unexpected error; production responses omit internal details","headers":{"Cache-Control":{"$ref":"#/components/headers/NoStore"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"InvalidUpload":{"description":"VALIDATION: invalid multipart content, metadata, file, or Idempotency-Key","headers":{"Cache-Control":{"$ref":"#/components/headers/NoStore"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"Conflict":{"description":"CONFLICT with a stable error.details.reason. UPLOAD_IN_PROGRESS is a matching active upload lease: wait for Retry-After and retry the same key and payload within a bounded budget. IDEMPOTENCY_MISMATCH, ISSUER_MISMATCH, REQUEST_CHANGED, STORAGE_MISMATCH, LEASE_EXPIRED, RESERVATION_CHANGED, TOKEN_INACTIVE, RECEIPT_INCOMPLETE and CLOCK_UNAVAILABLE require caller action or investigation. Never infer retry safety from message text. Legacy or unknown reasons must not be automatically retried.","headers":{"Cache-Control":{"$ref":"#/components/headers/NoStore"},"Retry-After":{"description":"Present only for UPLOAD_IN_PROGRESS. Minimum delay in seconds before a bounded same-key, identical-payload retry.","schema":{"type":"integer","minimum":1},"example":2}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvidenceUploadConflict"}}}},"TooLarge":{"description":"PAYLOAD_TOO_LARGE: file exceeds 4 MiB or complete multipart body exceeds 4,400,000 bytes","headers":{"Cache-Control":{"$ref":"#/components/headers/NoStore"}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}},"schemas":{"AssetType":{"type":"string","enum":["APPLICATION","DATABASE","INFRASTRUCTURE","ENDPOINT","SAAS","AI_SYSTEM","DATA_STORE","NETWORK_COMPONENT"]},"AssetStatus":{"type":"string","enum":["ACTIVE","INACTIVE","RETIRED"]},"RegisterCriticality":{"type":"string","enum":["LOW","MEDIUM","HIGH","CRITICAL"]},"RegisterRiskStatus":{"type":"string","enum":["OPEN","IN_TREATMENT","PENDING_APPROVAL","APPROVED","ADMINISTRATIVELY_CLOSED"]},"VendorLifecycle":{"type":"string","enum":["ACTIVE","PROCUREMENT","ARCHIVED"]},"VendorReview":{"type":"string","enum":["NOT_STARTED","IN_REVIEW","APPROVED","REJECTED","PENDING_RENEWAL"]},"AssetSummary":{"type":"object","additionalProperties":false,"required":["id","name","assetType","status","criticality"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"assetType":{"$ref":"#/components/schemas/AssetType"},"status":{"$ref":"#/components/schemas/AssetStatus"},"criticality":{"$ref":"#/components/schemas/RegisterCriticality"}}},"AssetDetail":{"type":"object","additionalProperties":false,"required":["id","name","assetType","status","criticality","sourceAssetId","description","environment","dataClassification","ownerMembershipId"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"assetType":{"$ref":"#/components/schemas/AssetType"},"status":{"$ref":"#/components/schemas/AssetStatus"},"criticality":{"$ref":"#/components/schemas/RegisterCriticality"},"sourceAssetId":{"type":["string","null"]},"description":{"type":["string","null"]},"environment":{"type":"string","enum":["PRODUCTION","STAGING","DEVELOPMENT","TEST"]},"dataClassification":{"type":"string","enum":["PUBLIC","INTERNAL","CONFIDENTIAL","RESTRICTED"]},"ownerMembershipId":{"type":["string","null"]}}},"AssetPage":{"type":"object","additionalProperties":false,"required":["items","page","pageSize","hasMore"],"properties":{"items":{"type":"array","maxItems":100,"items":{"$ref":"#/components/schemas/AssetSummary"}},"page":{"type":"integer","minimum":1,"maximum":10000},"pageSize":{"type":"integer","minimum":1,"maximum":100},"hasMore":{"type":"boolean"}}},"RiskSummary":{"type":"object","additionalProperties":false,"required":["id","code","title","status","inherentScore","residualScore"],"properties":{"id":{"type":"string"},"code":{"type":"string"},"title":{"type":"string"},"status":{"$ref":"#/components/schemas/RegisterRiskStatus"},"inherentScore":{"type":"integer","minimum":1,"maximum":25},"residualScore":{"type":["integer","null"],"minimum":1,"maximum":25}}},"RiskDetail":{"type":"object","additionalProperties":false,"required":["id","code","title","status","inherentScore","residualScore","categoryKey","description","inherentLikelihood","inherentImpact","residualLikelihood","residualImpact","ownerMembershipId"],"properties":{"id":{"type":"string"},"code":{"type":"string"},"title":{"type":"string"},"status":{"$ref":"#/components/schemas/RegisterRiskStatus"},"inherentScore":{"type":"integer","minimum":1,"maximum":25},"residualScore":{"type":["integer","null"],"minimum":1,"maximum":25},"categoryKey":{"type":"string","enum":["ACCESS_IDENTITY","DATA_PRIVACY","CLOUD_INFRASTRUCTURE","VULNERABILITY_ENDPOINT","APPLICATION_CHANGE","THIRD_PARTY_SUPPLIER","GOVERNANCE_COMPLIANCE","CONTINUITY_INCIDENT","PEOPLE_PHYSICAL","OPERATIONAL_FINANCIAL","UNCATEGORIZED"]},"description":{"type":["string","null"]},"inherentLikelihood":{"type":"integer","minimum":1,"maximum":5},"inherentImpact":{"type":"integer","minimum":1,"maximum":5},"residualLikelihood":{"type":["integer","null"],"minimum":1,"maximum":5},"residualImpact":{"type":["integer","null"],"minimum":1,"maximum":5},"ownerMembershipId":{"type":["string","null"]}}},"RiskPage":{"type":"object","additionalProperties":false,"required":["items","page","pageSize","hasMore"],"properties":{"items":{"type":"array","maxItems":100,"items":{"$ref":"#/components/schemas/RiskSummary"}},"page":{"type":"integer","minimum":1,"maximum":10000},"pageSize":{"type":"integer","minimum":1,"maximum":100},"hasMore":{"type":"boolean"}}},"VendorSummary":{"type":"object","additionalProperties":false,"required":["id","name","lifecycleStatus","criticality","reviewStatus"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"lifecycleStatus":{"$ref":"#/components/schemas/VendorLifecycle"},"criticality":{"$ref":"#/components/schemas/RegisterCriticality"},"reviewStatus":{"$ref":"#/components/schemas/VendorReview"}}},"VendorDetail":{"type":"object","additionalProperties":false,"required":["id","name","lifecycleStatus","criticality","reviewStatus","description","website","servicesProvided","businessOwnerMembershipId","securityOwnerMembershipId"],"properties":{"id":{"type":"string"},"name":{"type":"string"},"lifecycleStatus":{"$ref":"#/components/schemas/VendorLifecycle"},"criticality":{"$ref":"#/components/schemas/RegisterCriticality"},"reviewStatus":{"$ref":"#/components/schemas/VendorReview"},"description":{"type":["string","null"]},"website":{"type":["string","null"]},"servicesProvided":{"type":["string","null"]},"businessOwnerMembershipId":{"type":["string","null"]},"securityOwnerMembershipId":{"type":["string","null"]}}},"VendorPage":{"type":"object","additionalProperties":false,"required":["items","page","pageSize","hasMore"],"properties":{"items":{"type":"array","maxItems":100,"items":{"$ref":"#/components/schemas/VendorSummary"}},"page":{"type":"integer","minimum":1,"maximum":10000},"pageSize":{"type":"integer","minimum":1,"maximum":100},"hasMore":{"type":"boolean"}}},"EvidenceUploadConflict":{"type":"object","required":["error"],"additionalProperties":false,"properties":{"error":{"type":"object","required":["code","message","details"],"additionalProperties":false,"properties":{"code":{"type":"string","const":"CONFLICT"},"message":{"type":"string"},"details":{"type":"object","required":["reason"],"additionalProperties":false,"properties":{"reason":{"type":"string","enum":["UPLOAD_IN_PROGRESS","IDEMPOTENCY_MISMATCH","ISSUER_MISMATCH","REQUEST_CHANGED","STORAGE_MISMATCH","LEASE_EXPIRED","RESERVATION_CHANGED","TOKEN_INACTIVE","RECEIPT_INCOMPLETE","CLOCK_UNAVAILABLE"],"description":"Only UPLOAD_IN_PROGRESS permits bounded automatic replay of the identical saved key and payload. Every other reason requires caller action or investigation. Unknown or absent reasons must not be automatically retried."}}}}}}},"Test":{"type":"object","required":["id","catalogId","name","description","source","category","domain","testType","testFamily","status","cadence","createdAt","updatedAt"],"properties":{"id":{"type":"string"},"catalogId":{"type":["string","null"]},"name":{"type":"string"},"description":{"type":["string","null"]},"source":{"type":"string"},"category":{"type":"string"},"domain":{"type":"string"},"testType":{"type":"string","enum":["AUTOMATED","MANUAL","EVIDENCE"]},"testFamily":{"type":"string","enum":["GOVERNANCE_MAPPING","OPERATING_CONTROL","EVIDENCE_COLLECTION"]},"status":{"type":"string","enum":["PASSING","FAILING","NEEDS_REVIEW","REQUIRES_INTEGRATION","STALE","SUPPRESSED","MANUAL"]},"cadence":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"TestPage":{"type":"object","required":["items","page","pageSize","hasMore"],"properties":{"items":{"type":"array","maxItems":100,"items":{"$ref":"#/components/schemas/Test"}},"page":{"type":"integer","minimum":1,"maximum":10000},"pageSize":{"type":"integer","minimum":1,"maximum":100},"hasMore":{"type":"boolean"}}},"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"details":{}}}}},"EvidenceScope":{"type":["object","null"],"required":["assertionId","procedureRevision","acceptanceCriteriaId","populationKey","periodStart","periodEnd"],"additionalProperties":false,"properties":{"assertionId":{"type":"string"},"procedureRevision":{"type":"integer"},"acceptanceCriteriaId":{"type":"string"},"populationKey":{"type":"string"},"periodStart":{"type":"string","format":"date-time"},"periodEnd":{"type":"string","format":"date-time"}}},"EvidenceRequestItem":{"type":"object","required":["id","title","description","requirementKind","status","dueDate","renewalCadence","scope","testId","testName"],"additionalProperties":false,"properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":["string","null"]},"requirementKind":{"type":"string","enum":["DOCUMENTATION","TEST_EVIDENCE","POLICY_DEPENDENCY","GENERAL_EVIDENCE"]},"status":{"type":"string","enum":["OPEN","REJECTED"]},"dueDate":{"type":["string","null"],"format":"date-time"},"renewalCadence":{"type":["string","null"]},"scope":{"$ref":"#/components/schemas/EvidenceScope"},"testId":{"type":"string"},"testName":{"type":"string"}}},"EvidenceRequestPage":{"type":"object","required":["items","page","pageSize","hasMore"],"additionalProperties":false,"properties":{"items":{"type":"array","maxItems":100,"items":{"$ref":"#/components/schemas/EvidenceRequestItem"}},"page":{"type":"integer","minimum":1,"maximum":10000},"pageSize":{"type":"integer","minimum":1,"maximum":100},"hasMore":{"type":"boolean"}}},"UploadReceipt":{"type":"object","required":["receiptId","requestId","submissionId","evidenceId","evidenceVersionId","fileId"],"additionalProperties":false,"properties":{"receiptId":{"type":"string"},"requestId":{"type":"string"},"submissionId":{"type":"string"},"evidenceId":{"type":"string"},"evidenceVersionId":{"type":"string"},"fileId":{"type":"string"}}},"EvidenceRequestStatus":{"type":"object","required":["request","test","submission","evidence","coverage"],"additionalProperties":false,"properties":{"request":{"type":"object","required":["id","title","description","requirementKind","status","dueDate","renewalCadence","scope"],"additionalProperties":false,"properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":["string","null"]},"requirementKind":{"type":"string","enum":["DOCUMENTATION","TEST_EVIDENCE","POLICY_DEPENDENCY","GENERAL_EVIDENCE"]},"status":{"type":"string","enum":["OPEN","IN_REVIEW","APPROVED","REJECTED","CANCELLED"]},"dueDate":{"type":["string","null"],"format":"date-time"},"renewalCadence":{"type":["string","null"]},"scope":{"$ref":"#/components/schemas/EvidenceScope"}}},"test":{"type":"object","required":["id","name","status","testType","integrationRequired","latestResult"],"additionalProperties":false,"properties":{"id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["PASSING","FAILING","NEEDS_REVIEW","REQUIRES_INTEGRATION","STALE","SUPPRESSED","MANUAL"]},"testType":{"type":"string","enum":["AUTOMATED","MANUAL","EVIDENCE"]},"integrationRequired":{"type":"boolean"},"latestResult":{"type":["object","null"],"required":["id","status","evaluatedAt"],"additionalProperties":false,"properties":{"id":{"type":"string"},"status":{"type":"string","enum":["PASSING","FAILING","NEEDS_REVIEW","REQUIRES_INTEGRATION","STALE","SUPPRESSED","MANUAL"]},"evaluatedAt":{"type":"string","format":"date-time"}}}}},"submission":{"type":["object","null"],"required":["id","note","decision","reviewedAt","reviewerFeedback","createdAt"],"additionalProperties":false,"properties":{"id":{"type":"string"},"note":{"type":["string","null"]},"decision":{"type":["string","null"],"enum":["APPROVED","REJECTED","NEEDS_CHANGES",null]},"reviewedAt":{"type":["string","null"],"format":"date-time"},"reviewerFeedback":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"}}},"evidence":{"type":["object","null"],"required":["id","title","description","status","collectedAt","expiresAt","version"],"additionalProperties":false,"properties":{"id":{"type":"string"},"title":{"type":"string"},"description":{"type":["string","null"]},"status":{"type":"string","enum":["REQUESTED","SUBMITTED","APPROVED","REJECTED","EXPIRED"]},"collectedAt":{"type":["string","null"],"format":"date-time"},"expiresAt":{"type":["string","null"],"format":"date-time"},"version":{"type":["object","null"],"required":["id","versionNumber","changeNote","createdAt","file","review"],"additionalProperties":false,"properties":{"id":{"type":"string"},"versionNumber":{"type":"integer"},"changeNote":{"type":["string","null"]},"createdAt":{"type":"string","format":"date-time"},"file":{"type":["object","null"],"required":["fileName","contentType","byteSize","scanStatus"],"additionalProperties":false,"properties":{"fileName":{"type":"string"},"contentType":{"type":"string"},"byteSize":{"type":"integer"},"scanStatus":{"type":"string","enum":["PENDING","CLEAN","INFECTED","ERROR","SKIPPED"]}}},"review":{"type":["object","null"],"required":["decision","reviewedAt","expiresAt","revokedAt","revocationReason"],"additionalProperties":false,"properties":{"decision":{"type":"string","enum":["APPROVED","REJECTED","NEEDS_CHANGES"]},"reviewedAt":{"type":"string","format":"date-time"},"expiresAt":{"type":["string","null"],"format":"date-time"},"revokedAt":{"type":["string","null"],"format":"date-time"},"revocationReason":{"type":["string","null"]}}}}}}},"coverage":{"type":"array","description":"Current redacted decisions for mapped control associations; no mapping identifiers or rationale are exposed.","items":{"type":"object","required":["verified","satisfiesControl","reason"],"additionalProperties":false,"properties":{"verified":{"type":"boolean"},"satisfiesControl":{"type":"boolean"},"reason":{"type":"string"}}}}}}}}}