tools.ozone.safelink.queryRules

Query URL safety rules

Details · procedure
Kindprocedure
Authoritysafelink.ozone.tools
Indexed
cid bafyreie3wgnt3ry7bsxweczmoi3ltcmw2dyfbeojmuyb5bwmzn2yo46bla

Checks

Valid
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Query URL safety rules",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "actions": {
              "description": "Filter by action types",
              "items": {
                "type": "string"
              },
              "type": "array"
            },
            "createdBy": {
              "description": "Filter by rule creator",
              "format": "did",
              "type": "string"
            },
            "cursor": {
              "description": "Cursor for pagination",
              "type": "string"
            },
            "limit": {
              "default": 50,
              "description": "Maximum number of results to return",
              "maximum": 100,
              "minimum": 1,
              "type": "integer"
            },
            "patternType": {
              "description": "Filter by pattern type",
              "type": "string"
            },
            "reason": {
              "description": "Filter by reason type",
              "type": "string"
            },
            "sortDirection": {
              "default": "desc",
              "description": "Sort direction",
              "knownValues": [
                "asc",
                "desc"
              ],
              "type": "string"
            },
            "urls": {
              "description": "Filter by specific URLs or domains",
              "items": {
                "type": "string"
              },
              "type": "array"
            }
          },
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cursor": {
              "description": "Next cursor for pagination. Only present if there are more results.",
              "type": "string"
            },
            "rules": {
              "items": {
                "ref": "tools.ozone.safelink.defs#urlRule",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "rules"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "tools.ozone.safelink.queryRules",
  "lexicon": 1
}