import { Severity } from "./options"; export type Object = { type: "resource" | "application" | "user" | "group" | "tenant"; id: string; name: string; }; export type Problem = { rule: string; severity: Severity; object: Object; message?: string; messageId: string; data?: any; }; export class Context { readonly problems: Problem[] = []; report(problem: Problem) { this.problems.push(problem); } }