chadtmiller.com/knotless

Git hosted in your atproto account, on any stock PDS, fast enough for agents.

git clone knotless://chadtmiller.com/knotless

needs the knotless git helper. set it up

main
47 lines · 1.6 KB Raw History
{
  "lexicon": 1,
  "id": "dev.knotless.listReports",
  "defs": {
    "main": {
      "type": "query",
      "description": "The reports a moderation service was sent (com.atproto.moderation.createReport), newest first. For its operator: takes the admin password, as Basic auth for the user 'admin'.",
      "parameters": {
        "type": "params",
        "properties": {
          "limit": { "type": "integer", "minimum": 1, "maximum": 500, "default": 50 },
          "cursor": { "type": "string", "description": "A report id: those before it." }
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": ["reports"],
          "properties": {
            "cursor": { "type": "string" },
            "reports": {
              "type": "array",
              "items": { "type": "ref", "ref": "#report" }
            }
          }
        }
      }
    },
    "report": {
      "type": "object",
      "description": "As com.atproto.moderation.createReport answered it.",
      "required": ["id", "reasonType", "subject", "reportedBy", "createdAt"],
      "properties": {
        "id": { "type": "integer" },
        "reasonType": { "type": "ref", "ref": "com.atproto.moderation.defs#reasonType" },
        "reason": { "type": "string", "maxGraphemes": 2000, "maxLength": 20000 },
        "subject": {
          "type": "union",
          "refs": ["com.atproto.admin.defs#repoRef", "com.atproto.repo.strongRef"]
        },
        "reportedBy": { "type": "string", "format": "did" },
        "createdAt": { "type": "string", "format": "datetime" }
      }
    }
  }
}