SARIF types for conversion

interface SarifResult {
    level:
        | "error"
        | "warning"
        | "note"
        | "none";
    locations: {
        physicalLocation: {
            artifactLocation: {
                uri: string;
            };
            region: {
                startColumn: number;
                startLine: number;
            };
        };
    }[];
    message: {
        text: string;
    };
    properties?: {
        category?: string;
        detectorId?: string;
        docURL?: string;
        extraDescription?: string;
        severity?: string;
        suggestion?: string;
    };
    ruleId: string;
}

Properties

level:
    | "error"
    | "warning"
    | "note"
    | "none"
locations: {
    physicalLocation: {
        artifactLocation: {
            uri: string;
        };
        region: {
            startColumn: number;
            startLine: number;
        };
    };
}[]
message: {
    text: string;
}
properties?: {
    category?: string;
    detectorId?: string;
    docURL?: string;
    extraDescription?: string;
    severity?: string;
    suggestion?: string;
}
ruleId: string