Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions src/lib/audit/highLevelActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
7 changes: 7 additions & 0 deletions tests/unit/audit-high-level-actions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Loading