atproto blogging
1{
2 "lexicon": 1,
3 "id": "tools.ozone.safelink.queryEvents",
4 "defs": {
5 "main": {
6 "type": "procedure",
7 "description": "Query URL safety audit events",
8 "input": {
9 "encoding": "application/json",
10 "schema": {
11 "type": "object",
12 "properties": {
13 "cursor": {
14 "type": "string",
15 "description": "Cursor for pagination"
16 },
17 "limit": {
18 "type": "integer",
19 "description": "Maximum number of results to return",
20 "default": 50,
21 "minimum": 1,
22 "maximum": 100
23 },
24 "patternType": {
25 "type": "string",
26 "description": "Filter by pattern type"
27 },
28 "sortDirection": {
29 "type": "string",
30 "description": "Sort direction",
31 "default": "desc",
32 "knownValues": [
33 "asc",
34 "desc"
35 ]
36 },
37 "urls": {
38 "type": "array",
39 "description": "Filter by specific URLs or domains",
40 "items": {
41 "type": "string"
42 }
43 }
44 }
45 }
46 },
47 "output": {
48 "encoding": "application/json",
49 "schema": {
50 "type": "object",
51 "required": [
52 "events"
53 ],
54 "properties": {
55 "cursor": {
56 "type": "string",
57 "description": "Next cursor for pagination. Only present if there are more results."
58 },
59 "events": {
60 "type": "array",
61 "items": {
62 "type": "ref",
63 "ref": "tools.ozone.safelink.defs#event"
64 }
65 }
66 }
67 }
68 }
69 }
70 }
71}