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