app.tempomusic.staff.suspendAccount

lexicons.tempomusic.fan

{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Suspend an account: all of its content disappears from the public read surface (feeds, single fetches, threads, notifications) while the row is active. Reversible via unsuspendAccount; optionally time-boxed via `until` (evaluated at read time — a lapsed suspension readmits content with no further action). Re-suspending replaces the current suspension (new reason/expiry, new audit row). Requires the `moderator` role. Writes an `accountSuspended` audit row.",
      "errors": [
        {
          "description": "The caller is not an active moderator.",
          "name": "Forbidden"
        },
        {
          "description": "Malformed DID or `until` not in the future.",
          "name": "InvalidRequest"
        },
        {
          "description": "The account is banned — a ban is permanent and stricter than a suspension.",
          "name": "AccountBanned"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "closeAttachedReports": {
              "default": false,
              "description": "When true, all reports against the ACCOUNT subject still in `open` or `underReview` are marked `actioned` in the same transaction; each closed report gets a `reportClosedByCascade` audit row linked to this sanction's audit id. Reports against individual posts/replies of the account are left open — the moderator has not examined them.",
              "type": "boolean"
            },
            "did": {
              "format": "did",
              "type": "string"
            },
            "notifyUser": {
              "default": false,
              "description": "When true, persist a moderation notice addressed to the affected user (content author or account holder). Delivery is out of scope.",
              "type": "boolean"
            },
            "reason": {
              "maxLength": 2000,
              "minLength": 1,
              "type": "string"
            },
            "until": {
              "description": "Suspension expiry. Omitted = indefinite (until explicitly unsuspended). Must be in the future.",
              "format": "datetime",
              "type": "string"
            }
          },
          "required": [
            "did",
            "reason"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "attachedReportsClosed": {
              "description": "Number of account-subject reports auto-closed in this transaction. Zero when closeAttachedReports=false or none were open.",
              "minimum": 0,
              "type": "integer"
            },
            "auditEntryId": {
              "minimum": 1,
              "type": "integer"
            }
          },
          "required": [
            "auditEntryId",
            "attachedReportsClosed"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "app.tempomusic.staff.suspendAccount",
  "lexicon": 1
}

Validate Record

Validate a record against app.tempomusic.staff.suspendAccount

Validation Options
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:pxsuqmultto34oks44m2lgxm
CID
bafyreifoaknhwta2lg6sgs3shyrpilgvcytqj7jyleraiteqpxm3ryw6hu
Indexed At
2026-08-24 09:06 UTC
AT-URI
at://did:plc:pxsuqmultto34oks44m2lgxm/com.atproto.lexicon.schema/app.tempomusic.staff.suspendAccount

Similar Lexicons

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

  • Permanently ban an account: all of its content disappears from the public read surface and no surface can lift the state. Escalating an active suspension replaces it. Requires the `superAdmin` role. Writes an `accountBa…

  • Lift an account suspension: deletes the current state row (history stays in the audit log) and instantly readmits the account's content on the public surface. Also accepts a LAPSED suspension (removes the stale row). Ca…

  • 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 …

  • at.askimut.moderation.suspend recordnot from the namespace authority

    App-wide suspension: the subject account cannot submit native Questions on Askimut.

  • Current account-level moderation state of a DID (suspension or ban), or an empty object when the account is unrestricted. A lapsed suspension is reported with its (past) `until` — interpretation is the caller's. Requi…

Lexicon Garden

@