diff --git a/src/lib/audit/highLevelActions.ts b/src/lib/audit/highLevelActions.ts index a76bae5763..e38b701ed1 100644 --- a/src/lib/audit/highLevelActions.ts +++ b/src/lib/audit/highLevelActions.ts @@ -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 = new Set(HIGH_LEVEL_ACTIONS); export function isHighLevelAction(action: string): boolean { diff --git a/tests/unit/audit-high-level-actions.test.ts b/tests/unit/audit-high-level-actions.test.ts index a3fc1f7cf4..e0ac0b7dba 100644 --- a/tests/unit/audit-high-level-actions.test.ts +++ b/tests/unit/audit-high-level-actions.test.ts @@ -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);