Foysal Ahamed 02c358d0ca
Adds safelink module (#3945)
*  Adds safelink module

*  Remove createdAt timestamp bloat

* :rotating_lights: Fix lint issue

* 🐛 Fix pagination

* 🔨 Refactor safelink rule table

* 🧹 Add better default

*  Better search params

*  Remove mod requirement for query rules and events

*  Cleanup search for queryEvents

* 📝 Add changeset

* :rotating_lights: Fix lint issue

* 🧹 Adjust as per review feedback

*  Add support for sort direction in safelink rules

* :rotating_lights: Fix lint issue

*  Split input and response object shape

* :rotating_lights: Fix lint issue
2025-07-02 21:17:38 +02:00

50 lines
1.3 KiB
JSON

{
"lexicon": 1,
"id": "tools.ozone.safelink.removeRule",
"defs": {
"main": {
"type": "procedure",
"description": "Remove an existing URL safety rule",
"input": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["url", "pattern"],
"properties": {
"url": {
"type": "string",
"description": "The URL or domain to remove the rule for"
},
"pattern": {
"type": "ref",
"ref": "tools.ozone.safelink.defs#patternType"
},
"comment": {
"type": "string",
"description": "Optional comment about why the rule is being removed"
},
"createdBy": {
"type": "string",
"format": "did",
"description": "Optional DID of the user. Only respected when using admin auth."
}
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "ref",
"ref": "tools.ozone.safelink.defs#event"
}
},
"errors": [
{
"name": "RuleNotFound",
"description": "No active rule found for this URL/domain"
}
]
}
}
}