Optional metadata?: boolean | Partial<CorjMetadata>true adds both v and $schema, false neither; an object sets them individually.
Optional redact?: CorjRedactPolicyInput | nullA redaction policy, or null for none. See CorjRedactPolicyInput.
const options: CorjOptionsInput = {
maxReportSize: 16_000, // safe integer >= 512, or null
maxDepth: 2, // follow `cause` / `errors` two levels down
metadata: false, // no `v`, no `$schema`
redact: { patterns: [/sk-live-[A-Za-z0-9]+/g] },
onReportingError: () => {}, // silence the default console.warn
};
Options accepted by CorjMaker, makeCaughtObjectReport and makeCaughtObjectReportArray. Missing ones keep their defaults.