Skip to content

CreateCodeFindingInput

Source code in docs_src/capo_continuum/types/create_code_finding_input.py
class CreateCodeFindingInput(TypedDict, closed=True):
    environment_id: "capo_continuum.types.environment_id.EnvironmentId"
    """The environment to ingest the finding into."""
    ocsf_document: "object"
    """The OCSF finding document to ingest, verbatim. Must declare a class_uid Continuum supports (2002 Vulnerability Finding, or 2007 Application Security Posture Finding) and validate against the vendored OCSF JSON Schema for that class, including the Continuum overlay requirements that finding_info.uid be present and that vulnerabilities[0].affected_code[0].file identify the code location. With several repositories in the environment, the file path must begin with the repository name. Maximum size 256 KB. Stored verbatim and normalized into the typed Finding members returned by GetCodeFinding. GetCodeFinding does not return the document itself."""
    client_token: NotRequired[
        "capo_continuum.types.finding_client_token.FindingClientToken"
    ]
    """Caller-provided idempotency token. A retry with the same token and an identical finding document replays the original result; the same token with different content is rejected."""

client_token instance-attribute

client_token: NotRequired[FindingClientToken]

Caller-provided idempotency token. A retry with the same token and an identical finding document replays the original result; the same token with different content is rejected.

environment_id instance-attribute

environment_id: EnvironmentId

The environment to ingest the finding into.

ocsf_document instance-attribute

ocsf_document: object

The OCSF finding document to ingest, verbatim. Must declare a class_uid Continuum supports (2002 Vulnerability Finding, or 2007 Application Security Posture Finding) and validate against the vendored OCSF JSON Schema for that class, including the Continuum overlay requirements that finding_info.uid be present and that vulnerabilities[0].affected_code[0].file identify the code location. With several repositories in the environment, the file path must begin with the repository name. Maximum size 256 KB. Stored verbatim and normalized into the typed Finding members returned by GetCodeFinding. GetCodeFinding does not return the document itself.