chore: remove unused audit action type (#5382)

Integrated into release/v3.8.42
This commit is contained in:
Jan Leon
2026-06-30 00:15:04 +02:00
committed by GitHub
parent 1970e7bad8
commit 5c66eb9494
2 changed files with 7 additions and 2 deletions

View File

@@ -50,8 +50,6 @@ export const HIGH_LEVEL_ACTIONS = [
"quota.store.driver_changed",
] as const;
export type HighLevelAction = (typeof HIGH_LEVEL_ACTIONS)[number];
const SET: ReadonlySet<string> = new Set<string>(HIGH_LEVEL_ACTIONS);
export function isHighLevelAction(action: string): boolean {

View File

@@ -5,6 +5,13 @@ import { HIGH_LEVEL_ACTIONS, isHighLevelAction } from "../../src/lib/audit/highL
const ALL = HIGH_LEVEL_ACTIONS as readonly string[];
test("high-level actions module exposes runtime allowlist helpers", async () => {
const mod = await import("../../src/lib/audit/highLevelActions");
assert.equal(Array.isArray(mod.HIGH_LEVEL_ACTIONS), true);
assert.equal(typeof mod.isHighLevelAction, "function");
});
// B/G3: allowlist aligned with logAuditEvent emitters (27 after batch_updated).
test("HIGH_LEVEL_ACTIONS has exactly 27 entries", () => {
assert.equal(ALL.length, 27);