diff --git a/Audit.ts b/Audit.ts index 51dcd44f..4ac76e38 100644 --- a/Audit.ts +++ b/Audit.ts @@ -3,10 +3,28 @@ import { isly } from "isly" export type Audit = storage.AuditLogger.Entry export namespace Audit { - export type Type = { rule: "change" | "add"; user: "login" | "change" } + export type Type = { + rule: "change" | "add" + user: "login" | "change" + organization: "change" | "add" + account: "change" | "add" | "status" + card: "change" | "add" + transaction: "status" | "add" + operation: "manual" + label: "change" | "add" + } export type Resource = typeof Resource.values[number] export namespace Resource { - export const values = ["rule", "user"] as const + export const values = [ + "rule", + "user", + "organization", + "account", + "card", + "transaction", + "operation", + "label", + ] as const export const type = isly.string(values) } }