tools.ozone.safelink.addRule

ozone-lexicons.bsky.social

{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Add a new URL safety rule",
      "errors": [
        {
          "description": "The provided URL is invalid",
          "name": "InvalidUrl"
        },
        {
          "description": "A rule for this URL/domain already exists",
          "name": "RuleAlreadyExists"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "action": {
              "ref": "tools.ozone.safelink.defs#actionType",
              "type": "ref"
            },
            "comment": {
              "description": "Optional comment about the decision",
              "type": "string"
            },
            "createdBy": {
              "description": "Author DID. Only respected when using admin auth",
              "format": "did",
              "type": "string"
            },
            "pattern": {
              "ref": "tools.ozone.safelink.defs#patternType",
              "type": "ref"
            },
            "reason": {
              "ref": "tools.ozone.safelink.defs#reasonType",
              "type": "ref"
            },
            "url": {
              "description": "The URL or domain to apply the rule to",
              "type": "string"
            }
          },
          "required": [
            "url",
            "pattern",
            "action",
            "reason"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "ref": "tools.ozone.safelink.defs#event",
          "type": "ref"
        }
      },
      "type": "procedure"
    }
  },
  "id": "tools.ozone.safelink.addRule",
  "lexicon": 1
}

Validate Record

Validate a record against tools.ozone.safelink.addRule

Validation Options
Automatically resolve and include external schemas for full validation
Treat any remaining unresolved references as valid

Metadata

DID
did:plc:33dt5kftu3jq2h5h4jjlqezt
CID
bafyreifbnjv4hhxzgpdmbjl6ipwgzq233rjw3eu2cayp2benof7ajqovlq
Indexed At
2026-07-26 20:04 UTC
AT-URI
at://did:plc:33dt5kftu3jq2h5h4jjlqezt/com.atproto.lexicon.schema/tools.ozone.safelink.addRule

Referenced Schemas (4)

Similar Lexicons

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

Lexicon Garden

@