Skip to content

five-on-it / apps/api/src/store / AuditEntry

Interface: AuditEntry ​

Defined in: apps/api/src/store.ts:221

One moderator's decision, or one admin's change of an account's limits, kept for good.

Properties ​

account? ​

optional account?: string

Defined in: apps/api/src/store.ts:254

The account whose limits changed (limits), whose conduct an admin adjusted (conduct), whose report was upheld (uphold), or whose standing was erased (erase).


action ​

action: "conduct" | "delete" | "settings" | "takedown" | "restore" | "feature" | "unfeature" | "dismiss" | "uphold" | "limits" | "erase"

Defined in: apps/api/src/store.ts:235

What they did: a moderator's decision on a game or a report (uphold: a report of a player upheld, their conduct lowered), an admin's change of an account's limits, of its conduct, or its standing erased (an account deleted on request); an admin's change of the platform's settings (settings); a game deleted by its creator or an admin (delete).


after? ​

optional after?: AccountLimits | PlatformSettings | null

Defined in: apps/api/src/store.ts:260


at ​

at: string

Defined in: apps/api/src/store.ts:225

ISO time.


before? ​

optional before?: AccountLimits | PlatformSettings | null

Defined in: apps/api/src/store.ts:259

Its override before and after the change (null: none, the configured defaults): an account's limits (limits), or the platform's settings (settings).


conduct? ​

optional conduct?: object

Defined in: apps/api/src/store.ts:248

A change of conduct (conduct, uphold): by how much, and what it came to.

after ​

after: number

delta ​

delta: number


game? ​

optional game?: string

Defined in: apps/api/src/store.ts:250

The game it was about (none for limits).


id ​

id: string

Defined in: apps/api/src/store.ts:223

audit-….


moderator ​

moderator: string

Defined in: apps/api/src/store.ts:227

Who decided: the moderator's (or, for limits, the admin's) account id and name.


moderatorName ​

moderatorName: string

Defined in: apps/api/src/store.ts:228


note? ​

optional note?: string

Defined in: apps/api/src/store.ts:262

Why, in their words.


reports? ​

optional reports?: string[]

Defined in: apps/api/src/store.ts:252

The reports it decided.