atproto blogging
1{
2 "lexicon": 1,
3 "id": "tools.ozone.moderation.listScheduledActions",
4 "defs": {
5 "main": {
6 "type": "procedure",
7 "description": "List scheduled moderation actions with optional filtering",
8 "input": {
9 "encoding": "application/json",
10 "schema": {
11 "type": "object",
12 "required": [
13 "statuses"
14 ],
15 "properties": {
16 "cursor": {
17 "type": "string",
18 "description": "Cursor for pagination"
19 },
20 "endsBefore": {
21 "type": "string",
22 "description": "Filter actions scheduled to execute before this time",
23 "format": "datetime"
24 },
25 "limit": {
26 "type": "integer",
27 "description": "Maximum number of results to return",
28 "default": 50,
29 "minimum": 1,
30 "maximum": 100
31 },
32 "startsAfter": {
33 "type": "string",
34 "description": "Filter actions scheduled to execute after this time",
35 "format": "datetime"
36 },
37 "statuses": {
38 "type": "array",
39 "description": "Filter actions by status",
40 "items": {
41 "type": "string",
42 "knownValues": [
43 "pending",
44 "executed",
45 "cancelled",
46 "failed"
47 ]
48 },
49 "minLength": 1
50 },
51 "subjects": {
52 "type": "array",
53 "description": "Filter actions for specific DID subjects",
54 "items": {
55 "type": "string",
56 "format": "did"
57 },
58 "maxLength": 100
59 }
60 }
61 }
62 },
63 "output": {
64 "encoding": "application/json",
65 "schema": {
66 "type": "object",
67 "required": [
68 "actions"
69 ],
70 "properties": {
71 "actions": {
72 "type": "array",
73 "items": {
74 "type": "ref",
75 "ref": "tools.ozone.moderation.defs#scheduledActionView"
76 }
77 },
78 "cursor": {
79 "type": "string",
80 "description": "Cursor for next page of results"
81 }
82 }
83 }
84 }
85 }
86 }
87}