app.tempomusic.staff.defs

kind defs authority staff.tempomusic.app lexicon 1 did:plc:pxsuqmultto34oks44m2lgxm · indexed 78d ago

#auditEntryView

object

AppView projection of a moderation_audit row. The audit log is append-only and never purged; entries survive hard-deletion of the actor account.

Properties

actionType

requiredref
Reference

actorDid

requiredstring · did

DID of the moderator who performed the action, or of the reporter for `reportCreated` entries.

moderation_status value after the action, when applicable. 0 = live, 1 = reported, 2 = tagged, 3 = legalHold.

  • minimum: 0

moderation_status value before the action, when applicable. 0 = live, 1 = reported, 2 = tagged, 3 = legalHold.

  • minimum: 0

createdAt

requiredstring · datetime

id

requiredinteger
  • minimum: 1

reason

string

Free-text reason provided by the actor.

  • maxLength: 5000
  • maxGraphemes: 500

reportId

integer

Linked report row when relevant (report-lifecycle entries, takedowns with closeAttachedReports).

  • minimum: 1

For subjectTakedown actions, the class chosen by the moderator. Equivalent to afterStatus but in symbolic form; populated to spare clients from translating the integer code.

Reference

#inviteCodeUse

object

Properties

usedAt

requiredstring · datetime

usedBy

requiredstring · did

#inviteCodeView

object

AppView projection of a single PDS invite code, sourced on-demand from `com.atproto.admin.getInviteCodes`. No local mirror.

Properties

available

requiredinteger

Number of remaining uses. `1 - uses.length` for the single-use codes emitted by this feature.

  • minimum: 0

code

requiredstring

Suffix only — the env prefix has been stripped by the server before surfacing.

  • maxLength: 128

createdAt

requiredstring · datetime

createdBy

requiredstring · did

DID of the staff account that generated this code.

disabled

requiredboolean

True when the code has been disabled by a super-admin via disableInviteCodes.

forAccount

string · did

When the code was minted for a specific DID (unused by this feature — the staff panel only generates unbound codes).

uses

array
itemsref
Reference

#reportStatus

string

Lifecycle 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: 100
  • knownValues: open | underReview | actioned | dismissed

#reportView

object

AppView projection of a single report row.

Properties

createdAt

requiredstring · datetime

details

string

Free-text context provided by the reporter. Absent when not provided.

  • maxLength: 500
  • maxGraphemes: 500

id

requiredinteger
  • minimum: 1

reporterDid

requiredstring · did
  • maxLength: 5000
  • maxGraphemes: 500

resolvedAt

string · datetime

resolvedByDid

string · did

status

requiredref
Reference

subjectKnownAtIntake

requiredboolean

True 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 · datetime

Timestamp at which the daily resolver job flipped subjectKnownAtIntake from false to true. Absent when intake was already known.

triagedAt

string · datetime

triagedByDid

string · did

#staffActionType

string

Categorical action recorded in the moderation audit log. Covers report-lifecycle transitions, subject status changes, moderator-role mutations, and invite-code lifecycle (TEM-502).

  • maxLength: 100
  • knownValues: reportCreated | reportTriaged | reportDismissed | reportClosedByCascade | subjectTakedown | subjectRestore | moderatorGranted | moderatorRevoked | accountSuspended | accountUnsuspended | accountBanned | reportReopened | inviteCodeCreated | inviteCodeDisabled

#staffRole

string

Privilege level on the admin surface. `superAdmin` is the only role permitted to grant or revoke other moderators.

  • maxLength: 100
  • knownValues: moderator | superAdmin

#staffView

object

AppView projection of a row in the moderators table.

Properties

did

requiredstring · did

grantedAt

requiredstring · datetime

grantedByDid

string · did

DID of the super-admin who granted this row. Absent for bootstrap rows seeded from the TEMPO_STAFF_BOOTSTRAP_DIDS env var.

  • maxLength: 5000
  • maxGraphemes: 500

revokedAt

string · datetime

When set, the row is no longer active; the gate denies the DID. Listed in listStaff only when explicitly requested via the includeRevoked parameter.

role

requiredref
Reference

#takedownClass

string

Classification 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: 100
  • knownValues: reported | tagged | legalHold

Similar lexicons

semantic match

Lexicons whose schemas describe something close to this one. Check them before publishing a new one that overlaps.

  • Flip `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.

  • A 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.