-
Notifications
You must be signed in to change notification settings - Fork 573
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'origin/main' into multi-pds-auth
- Loading branch information
Showing
119 changed files
with
6,882 additions
and
7,513 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{ | ||
"lexicon": 1, | ||
"id": "com.atproto.admin.queryModerationEvents", | ||
"defs": { | ||
"main": { | ||
"type": "query", | ||
"description": "List moderation events related to a subject.", | ||
"parameters": { | ||
"type": "params", | ||
"properties": { | ||
"types": { | ||
"type": "array", | ||
"items": { "type": "string" }, | ||
"description": "The types of events (fully qualified string in the format of com.atproto.admin#modEvent<name>) to filter by. If not specified, all events are returned." | ||
}, | ||
"createdBy": { | ||
"type": "string", | ||
"format": "did" | ||
}, | ||
"sortDirection": { | ||
"type": "string", | ||
"default": "desc", | ||
"enum": ["asc", "desc"], | ||
"description": "Sort direction for the events. Defaults to descending order of created at timestamp." | ||
}, | ||
"subject": { "type": "string", "format": "uri" }, | ||
"includeAllUserRecords": { | ||
"type": "boolean", | ||
"default": false, | ||
"description": "If true, events on all record types (posts, lists, profile etc.) owned by the did are returned" | ||
}, | ||
"limit": { | ||
"type": "integer", | ||
"minimum": 1, | ||
"maximum": 100, | ||
"default": 50 | ||
}, | ||
"cursor": { "type": "string" } | ||
} | ||
}, | ||
"output": { | ||
"encoding": "application/json", | ||
"schema": { | ||
"type": "object", | ||
"required": ["events"], | ||
"properties": { | ||
"cursor": { "type": "string" }, | ||
"events": { | ||
"type": "array", | ||
"items": { | ||
"type": "ref", | ||
"ref": "com.atproto.admin.defs#modEventView" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
{ | ||
"lexicon": 1, | ||
"id": "com.atproto.admin.queryModerationStatuses", | ||
"defs": { | ||
"main": { | ||
"type": "query", | ||
"description": "View moderation statuses of subjects (record or repo).", | ||
"parameters": { | ||
"type": "params", | ||
"properties": { | ||
"subject": { "type": "string", "format": "uri" }, | ||
"comment": { | ||
"type": "string", | ||
"description": "Search subjects by keyword from comments" | ||
}, | ||
"reportedAfter": { | ||
"type": "string", | ||
"format": "datetime", | ||
"description": "Search subjects reported after a given timestamp" | ||
}, | ||
"reportedBefore": { | ||
"type": "string", | ||
"format": "datetime", | ||
"description": "Search subjects reported before a given timestamp" | ||
}, | ||
"reviewedAfter": { | ||
"type": "string", | ||
"format": "datetime", | ||
"description": "Search subjects reviewed after a given timestamp" | ||
}, | ||
"reviewedBefore": { | ||
"type": "string", | ||
"format": "datetime", | ||
"description": "Search subjects reviewed before a given timestamp" | ||
}, | ||
"includeMuted": { | ||
"type": "boolean", | ||
"description": "By default, we don't include muted subjects in the results. Set this to true to include them." | ||
}, | ||
"reviewState": { | ||
"type": "string", | ||
"description": "Specify when fetching subjects in a certain state" | ||
}, | ||
"ignoreSubjects": { | ||
"type": "array", | ||
"items": { "type": "string", "format": "uri" } | ||
}, | ||
"lastReviewedBy": { | ||
"type": "string", | ||
"format": "did", | ||
"description": "Get all subject statuses that were reviewed by a specific moderator" | ||
}, | ||
"sortField": { | ||
"type": "string", | ||
"default": "lastReportedAt", | ||
"enum": ["lastReviewedAt", "lastReportedAt"] | ||
}, | ||
"sortDirection": { | ||
"type": "string", | ||
"default": "desc", | ||
"enum": ["asc", "desc"] | ||
}, | ||
"takendown": { | ||
"type": "boolean", | ||
"description": "Get subjects that were taken down" | ||
}, | ||
"limit": { | ||
"type": "integer", | ||
"minimum": 1, | ||
"maximum": 100, | ||
"default": 50 | ||
}, | ||
"cursor": { "type": "string" } | ||
} | ||
}, | ||
"output": { | ||
"encoding": "application/json", | ||
"schema": { | ||
"type": "object", | ||
"required": ["subjectStatuses"], | ||
"properties": { | ||
"cursor": { "type": "string" }, | ||
"subjectStatuses": { | ||
"type": "array", | ||
"items": { | ||
"type": "ref", | ||
"ref": "com.atproto.admin.defs#subjectStatusView" | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.