atproto blogging
at main 239 lines 8.7 kB view raw
1{ 2 "lexicon": 1, 3 "id": "tools.ozone.moderation.queryStatuses", 4 "defs": { 5 "main": { 6 "type": "query", 7 "description": "View moderation statuses of subjects (record or repo).", 8 "parameters": { 9 "type": "params", 10 "properties": { 11 "ageAssuranceState": { 12 "type": "string", 13 "description": "If specified, only subjects with the given age assurance state will be returned.", 14 "knownValues": [ 15 "pending", 16 "assured", 17 "unknown", 18 "reset", 19 "blocked" 20 ] 21 }, 22 "appealed": { 23 "type": "boolean", 24 "description": "Get subjects in unresolved appealed status" 25 }, 26 "collections": { 27 "type": "array", 28 "description": "If specified, subjects belonging to the given collections will be returned. When subjectType is set to 'account', this will be ignored.", 29 "items": { 30 "type": "string", 31 "format": "nsid" 32 }, 33 "maxLength": 20 34 }, 35 "comment": { 36 "type": "string", 37 "description": "Search subjects by keyword from comments" 38 }, 39 "cursor": { 40 "type": "string" 41 }, 42 "excludeTags": { 43 "type": "array", 44 "items": { 45 "type": "string" 46 } 47 }, 48 "hostingDeletedAfter": { 49 "type": "string", 50 "description": "Search subjects where the associated record/account was deleted after a given timestamp", 51 "format": "datetime" 52 }, 53 "hostingDeletedBefore": { 54 "type": "string", 55 "description": "Search subjects where the associated record/account was deleted before a given timestamp", 56 "format": "datetime" 57 }, 58 "hostingStatuses": { 59 "type": "array", 60 "description": "Search subjects by the status of the associated record/account", 61 "items": { 62 "type": "string" 63 } 64 }, 65 "hostingUpdatedAfter": { 66 "type": "string", 67 "description": "Search subjects where the associated record/account was updated after a given timestamp", 68 "format": "datetime" 69 }, 70 "hostingUpdatedBefore": { 71 "type": "string", 72 "description": "Search subjects where the associated record/account was updated before a given timestamp", 73 "format": "datetime" 74 }, 75 "ignoreSubjects": { 76 "type": "array", 77 "items": { 78 "type": "string", 79 "format": "uri" 80 } 81 }, 82 "includeAllUserRecords": { 83 "type": "boolean", 84 "description": "All subjects, or subjects from given 'collections' param, belonging to the account specified in the 'subject' param will be returned." 85 }, 86 "includeMuted": { 87 "type": "boolean", 88 "description": "By default, we don't include muted subjects in the results. Set this to true to include them." 89 }, 90 "lastReviewedBy": { 91 "type": "string", 92 "description": "Get all subject statuses that were reviewed by a specific moderator", 93 "format": "did" 94 }, 95 "limit": { 96 "type": "integer", 97 "default": 50, 98 "minimum": 1, 99 "maximum": 100 100 }, 101 "minAccountSuspendCount": { 102 "type": "integer", 103 "description": "If specified, only subjects that belong to an account that has at least this many suspensions will be returned." 104 }, 105 "minPriorityScore": { 106 "type": "integer", 107 "description": "If specified, only subjects that have priority score value above the given value will be returned.", 108 "minimum": 0, 109 "maximum": 100 110 }, 111 "minReportedRecordsCount": { 112 "type": "integer", 113 "description": "If specified, only subjects that belong to an account that has at least this many reported records will be returned." 114 }, 115 "minStrikeCount": { 116 "type": "integer", 117 "description": "If specified, only subjects that belong to an account that has at least this many active strikes will be returned.", 118 "minimum": 1 119 }, 120 "minTakendownRecordsCount": { 121 "type": "integer", 122 "description": "If specified, only subjects that belong to an account that has at least this many taken down records will be returned." 123 }, 124 "onlyMuted": { 125 "type": "boolean", 126 "description": "When set to true, only muted subjects and reporters will be returned." 127 }, 128 "queueCount": { 129 "type": "integer", 130 "description": "Number of queues being used by moderators. Subjects will be split among all queues." 131 }, 132 "queueIndex": { 133 "type": "integer", 134 "description": "Index of the queue to fetch subjects from. Works only when queueCount value is specified." 135 }, 136 "queueSeed": { 137 "type": "string", 138 "description": "A seeder to shuffle/balance the queue items." 139 }, 140 "reportedAfter": { 141 "type": "string", 142 "description": "Search subjects reported after a given timestamp", 143 "format": "datetime" 144 }, 145 "reportedBefore": { 146 "type": "string", 147 "description": "Search subjects reported before a given timestamp", 148 "format": "datetime" 149 }, 150 "reviewState": { 151 "type": "string", 152 "description": "Specify when fetching subjects in a certain state", 153 "knownValues": [ 154 "tools.ozone.moderation.defs#reviewOpen", 155 "tools.ozone.moderation.defs#reviewClosed", 156 "tools.ozone.moderation.defs#reviewEscalated", 157 "tools.ozone.moderation.defs#reviewNone" 158 ] 159 }, 160 "reviewedAfter": { 161 "type": "string", 162 "description": "Search subjects reviewed after a given timestamp", 163 "format": "datetime" 164 }, 165 "reviewedBefore": { 166 "type": "string", 167 "description": "Search subjects reviewed before a given timestamp", 168 "format": "datetime" 169 }, 170 "sortDirection": { 171 "type": "string", 172 "default": "desc", 173 "enum": [ 174 "asc", 175 "desc" 176 ] 177 }, 178 "sortField": { 179 "type": "string", 180 "default": "lastReportedAt", 181 "enum": [ 182 "lastReviewedAt", 183 "lastReportedAt", 184 "reportedRecordsCount", 185 "takendownRecordsCount", 186 "priorityScore" 187 ] 188 }, 189 "subject": { 190 "type": "string", 191 "description": "The subject to get the status for.", 192 "format": "uri" 193 }, 194 "subjectType": { 195 "type": "string", 196 "description": "If specified, subjects of the given type (account or record) will be returned. When this is set to 'account' the 'collections' parameter will be ignored. When includeAllUserRecords or subject is set, this will be ignored.", 197 "knownValues": [ 198 "account", 199 "record" 200 ] 201 }, 202 "tags": { 203 "type": "array", 204 "items": { 205 "type": "string", 206 "description": "Items in this array are applied with OR filters. To apply AND filter, put all tags in the same string and separate using && characters" 207 }, 208 "maxLength": 25 209 }, 210 "takendown": { 211 "type": "boolean", 212 "description": "Get subjects that were taken down" 213 } 214 } 215 }, 216 "output": { 217 "encoding": "application/json", 218 "schema": { 219 "type": "object", 220 "required": [ 221 "subjectStatuses" 222 ], 223 "properties": { 224 "cursor": { 225 "type": "string" 226 }, 227 "subjectStatuses": { 228 "type": "array", 229 "items": { 230 "type": "ref", 231 "ref": "tools.ozone.moderation.defs#subjectStatusView" 232 } 233 } 234 } 235 } 236 } 237 } 238 } 239}