app.tempomusic.staff.defs
#auditEntryView
objectAppView projection of a moderation_audit row. The audit log is append-only and never purged; entries survive hard-deletion of the actor account.
Properties
DID of the moderator who performed the action, or of the reporter for `reportCreated` entries.
afterStatus
integermoderation_status value after the action, when applicable. 0 = live, 1 = reported, 2 = tagged, 3 = legalHold.
minimum: 0
beforeStatus
integermoderation_status value before the action, when applicable. 0 = live, 1 = reported, 2 = tagged, 3 = legalHold.
minimum: 0
minimum: 1
reason
stringFree-text reason provided by the actor.
maxLength: 5000maxGraphemes: 500
reportId
integerLinked report row when relevant (report-lifecycle entries, takedowns with closeAttachedReports).
minimum: 1
subject
unionFor subjectTakedown actions, the class chosen by the moderator. Equivalent to afterStatus but in symbolic form; populated to spare clients from translating the integer code.
#inviteCodeUse
object#inviteCodeView
objectAppView projection of a single PDS invite code, sourced on-demand from `com.atproto.admin.getInviteCodes`. No local mirror.
Properties
Number of remaining uses. `1 - uses.length` for the single-use codes emitted by this feature.
minimum: 0
Suffix only — the env prefix has been stripped by the server before surfacing.
maxLength: 128
DID of the staff account that generated this code.
True when the code has been disabled by a super-admin via disableInviteCodes.
forAccount
string · didWhen the code was minted for a specific DID (unused by this feature — the staff panel only generates unbound codes).
uses
array#reportStatus
stringLifecycle state of a report. `open` → `underReview` → terminal `actioned` | `dismissed`. Current implementations MUST NOT emit any value outside this set; future audit-clarity states (e.g. resolvedDuplicate) require an additive lexicon update plus an implementation that writes them.
maxLength: 100knownValues: open | underReview | actioned | dismissed
#reportView
objectAppView projection of a single report row.
Properties
details
stringFree-text context provided by the reporter. Absent when not provided.
maxLength: 500maxGraphemes: 500
minimum: 1
resolutionNote
stringmaxLength: 5000maxGraphemes: 500
resolvedAt
string · datetimeresolvedByDid
string · didTrue when the subject was already projected into the AppView at the moment of intake. False when the resolver job had to catch up; combined with subjectResolvedAt to distinguish the two known-at-intake variants. State combinations: (a) `true` + subjectResolvedAt absent = known at intake; (b) `true` + subjectResolvedAt present = resolver flipped after the fact; (c) `false` = still unresolved.
subjectResolvedAt
string · datetimeTimestamp at which the daily resolver job flipped subjectKnownAtIntake from false to true. Absent when intake was already known.
triagedAt
string · datetimetriagedByDid
string · did#staffActionType
stringCategorical action recorded in the moderation audit log. Covers report-lifecycle transitions, subject status changes, moderator-role mutations, and invite-code lifecycle (TEM-502).
maxLength: 100knownValues: reportCreated | reportTriaged | reportDismissed | reportClosedByCascade | subjectTakedown | subjectRestore | moderatorGranted | moderatorRevoked | accountSuspended | accountUnsuspended | accountBanned | reportReopened | inviteCodeCreated | inviteCodeDisabled
#staffRole
stringPrivilege level on the admin surface. `superAdmin` is the only role permitted to grant or revoke other moderators.
maxLength: 100knownValues: moderator | superAdmin
#staffView
objectAppView projection of a row in the moderators table.
Properties
grantedByDid
string · didDID of the super-admin who granted this row. Absent for bootstrap rows seeded from the TEMPO_STAFF_BOOTSTRAP_DIDS env var.
revokeReason
stringmaxLength: 5000maxGraphemes: 500
revokedAt
string · datetimeWhen set, the row is no longer active; the gate denies the DID. Listed in listStaff only when explicitly requested via the includeRevoked parameter.
#takedownClass
stringClassification of a takedown action. All three classes make the subject invisible to read paths identically; the distinction is downstream retention/purge policy. `reported` is the standard moderation hold. `tagged` is reserved for future classifier-driven holds with auto-purge after a sweep. `legalHold` is exempt from any future purge endpoint and is audit-mandatory.
maxLength: 100knownValues: reported | tagged | legalHold
Similar lexicons
semantic matchLexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.
-
app.tempomusic.staff.takedownSubject
procedureFlip `moderation_status` on a subject row to a non-zero takedown class. Read paths immediately refuse to serve the subject (404 on getPost / getReply / actor reads). Re-takedown against an already-taken-down subject is permitted as a severity escalation (e.g. `reported` → `legalHold`) or to amend the reason; each call writes a new audit row. Scoped to the subject row ONLY: an account takedown flips the profile row (offensive avatar/bio case) and does not touch the account's content — hiding ever
-
A single moderation action taken against a subject.
-
Global audit journal browser for the moderation console. Returns moderation_audit rows in reverse-chronological (created_at, id) keyset order, optionally filtered by acting moderator, action type, or subject DID. Complements getSubjectModerationHistory (per-subject view) with the 'what has the team been doing' view. Requires the caller to be an active moderator.
-
app.atmobb.moderation.action
recordA moderation action taken by a forum. Lives in the forum account's repo, making moderation portable and auditable — any appview can honor it at read time.
-
An audit log entry for a moderation action taken by the community. Enforcement is the space authority declining to issue credentials, and this records that it happened.