{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "List moderation scans.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cursor": {
              "type": "string"
            },
            "scans": {
              "items": {
                "ref": "#scan",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "scans"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "cursor": {
            "type": "string"
          },
          "kind": {
            "enum": [
              "post",
              "comment",
              "avatar",
              "banner"
            ],
            "type": "string"
          },
          "label": {
            "enum": [
              "nsfw",
              "clean",
              "review"
            ],
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 200,
            "minimum": 1,
            "type": "integer"
          },
          "provider": {
            "type": "string"
          }
        },
        "type": "params"
      },
      "type": "query"
    },
    "scan": {
      "properties": {
        "id": {
          "type": "string"
        },
        "kind": {
          "type": "string"
        },
        "label": {
          "type": "string"
        },
        "provider": {
          "type": "string"
        },
        "scannedAt": {
          "format": "datetime",
          "type": "string"
        },
        "scores": {
          "type": "unknown"
        },
        "subjectDid": {
          "format": "did",
          "type": "string"
        },
        "subjectImageCid": {
          "format": "cid",
          "type": "string"
        },
        "subjectUri": {
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "id",
        "kind",
        "subjectDid",
        "subjectImageCid",
        "provider",
        "scores",
        "scannedAt"
      ],
      "type": "object"
    }
  },
  "id": "app.didpic.admin.listScans",
  "lexicon": 1
}
