diff --git a/lexicons/com/atproto/admin/createCommunicationTemplate.json b/lexicons/com/atproto/admin/createCommunicationTemplate.json deleted file mode 100644 index d4546a0e213..00000000000 --- a/lexicons/com/atproto/admin/createCommunicationTemplate.json +++ /dev/null @@ -1,43 +0,0 @@ -{ - "lexicon": 1, - "id": "com.atproto.admin.createCommunicationTemplate", - "defs": { - "main": { - "type": "procedure", - "description": "Administrative action to create a new, re-usable communication (email for now) template.", - "input": { - "encoding": "application/json", - "schema": { - "type": "object", - "required": ["subject", "contentMarkdown", "name"], - "properties": { - "name": { - "type": "string", - "description": "Name of the template." - }, - "contentMarkdown": { - "type": "string", - "description": "Content of the template, markdown supported, can contain variable placeholders." - }, - "subject": { - "type": "string", - "description": "Subject of the message, used in emails." - }, - "createdBy": { - "type": "string", - "format": "did", - "description": "DID of the user who is creating the template." - } - } - } - }, - "output": { - "encoding": "application/json", - "schema": { - "type": "ref", - "ref": "com.atproto.admin.defs#communicationTemplateView" - } - } - } - } -} diff --git a/lexicons/com/atproto/admin/defs.json b/lexicons/com/atproto/admin/defs.json index 1dc4944417d..a2fcd91d5b9 100644 --- a/lexicons/com/atproto/admin/defs.json +++ b/lexicons/com/atproto/admin/defs.json @@ -10,289 +10,6 @@ "ref": { "type": "string" } } }, - "modEventView": { - "type": "object", - "required": [ - "id", - "event", - "subject", - "subjectBlobCids", - "createdBy", - "createdAt" - ], - "properties": { - "id": { "type": "integer" }, - "event": { - "type": "union", - "refs": [ - "#modEventTakedown", - "#modEventReverseTakedown", - "#modEventComment", - "#modEventReport", - "#modEventLabel", - "#modEventAcknowledge", - "#modEventEscalate", - "#modEventMute", - "#modEventEmail", - "#modEventResolveAppeal" - ] - }, - "subject": { - "type": "union", - "refs": ["#repoRef", "com.atproto.repo.strongRef"] - }, - "subjectBlobCids": { "type": "array", "items": { "type": "string" } }, - "createdBy": { "type": "string", "format": "did" }, - "createdAt": { "type": "string", "format": "datetime" }, - "creatorHandle": { "type": "string" }, - "subjectHandle": { "type": "string" } - } - }, - "modEventViewDetail": { - "type": "object", - "required": [ - "id", - "event", - "subject", - "subjectBlobs", - "createdBy", - "createdAt" - ], - "properties": { - "id": { "type": "integer" }, - "event": { - "type": "union", - "refs": [ - "#modEventTakedown", - "#modEventReverseTakedown", - "#modEventComment", - "#modEventReport", - "#modEventLabel", - "#modEventAcknowledge", - "#modEventEscalate", - "#modEventMute", - "#modEventEmail", - "#modEventResolveAppeal" - ] - }, - "subject": { - "type": "union", - "refs": [ - "#repoView", - "#repoViewNotFound", - "#recordView", - "#recordViewNotFound" - ] - }, - "subjectBlobs": { - "type": "array", - "items": { "type": "ref", "ref": "#blobView" } - }, - "createdBy": { "type": "string", "format": "did" }, - "createdAt": { "type": "string", "format": "datetime" } - } - }, - "reportView": { - "type": "object", - "required": [ - "id", - "reasonType", - "subject", - "reportedBy", - "createdAt", - "resolvedByActionIds" - ], - "properties": { - "id": { "type": "integer" }, - "reasonType": { - "type": "ref", - "ref": "com.atproto.moderation.defs#reasonType" - }, - "comment": { "type": "string" }, - "subjectRepoHandle": { "type": "string" }, - "subject": { - "type": "union", - "refs": ["#repoRef", "com.atproto.repo.strongRef"] - }, - "reportedBy": { "type": "string", "format": "did" }, - "createdAt": { "type": "string", "format": "datetime" }, - "resolvedByActionIds": { - "type": "array", - "items": { "type": "integer" } - } - } - }, - "subjectStatusView": { - "type": "object", - "required": ["id", "subject", "createdAt", "updatedAt", "reviewState"], - "properties": { - "id": { "type": "integer" }, - "subject": { - "type": "union", - "refs": ["#repoRef", "com.atproto.repo.strongRef"] - }, - "subjectBlobCids": { - "type": "array", - "items": { "type": "string", "format": "cid" } - }, - "subjectRepoHandle": { "type": "string" }, - "updatedAt": { - "type": "string", - "format": "datetime", - "description": "Timestamp referencing when the last update was made to the moderation status of the subject" - }, - "createdAt": { - "type": "string", - "format": "datetime", - "description": "Timestamp referencing the first moderation status impacting event was emitted on the subject" - }, - "reviewState": { - "type": "ref", - "ref": "#subjectReviewState" - }, - "comment": { - "type": "string", - "description": "Sticky comment on the subject." - }, - "muteUntil": { - "type": "string", - "format": "datetime" - }, - "lastReviewedBy": { - "type": "string", - "format": "did" - }, - "lastReviewedAt": { - "type": "string", - "format": "datetime" - }, - "lastReportedAt": { - "type": "string", - "format": "datetime" - }, - "lastAppealedAt": { - "type": "string", - "format": "datetime", - "description": "Timestamp referencing when the author of the subject appealed a moderation action" - }, - "takendown": { - "type": "boolean" - }, - "appealed": { - "type": "boolean", - "description": "True indicates that the a previously taken moderator action was appealed against, by the author of the content. False indicates last appeal was resolved by moderators." - }, - "suspendUntil": { - "type": "string", - "format": "datetime" - }, - "tags": { - "type": "array", - "items": { "type": "string" } - } - } - }, - "reportViewDetail": { - "type": "object", - "required": [ - "id", - "reasonType", - "subject", - "reportedBy", - "createdAt", - "resolvedByActions" - ], - "properties": { - "id": { "type": "integer" }, - "reasonType": { - "type": "ref", - "ref": "com.atproto.moderation.defs#reasonType" - }, - "comment": { "type": "string" }, - "subject": { - "type": "union", - "refs": [ - "#repoView", - "#repoViewNotFound", - "#recordView", - "#recordViewNotFound" - ] - }, - "subjectStatus": { - "type": "ref", - "ref": "com.atproto.admin.defs#subjectStatusView" - }, - "reportedBy": { "type": "string", "format": "did" }, - "createdAt": { "type": "string", "format": "datetime" }, - "resolvedByActions": { - "type": "array", - "items": { - "type": "ref", - "ref": "com.atproto.admin.defs#modEventView" - } - } - } - }, - "repoView": { - "type": "object", - "required": [ - "did", - "handle", - "relatedRecords", - "indexedAt", - "moderation" - ], - "properties": { - "did": { "type": "string", "format": "did" }, - "handle": { "type": "string", "format": "handle" }, - "email": { "type": "string" }, - "relatedRecords": { "type": "array", "items": { "type": "unknown" } }, - "indexedAt": { "type": "string", "format": "datetime" }, - "moderation": { "type": "ref", "ref": "#moderation" }, - "invitedBy": { - "type": "ref", - "ref": "com.atproto.server.defs#inviteCode" - }, - "invitesDisabled": { "type": "boolean" }, - "inviteNote": { "type": "string" } - } - }, - "repoViewDetail": { - "type": "object", - "required": [ - "did", - "handle", - "relatedRecords", - "indexedAt", - "moderation" - ], - "properties": { - "did": { "type": "string", "format": "did" }, - "handle": { "type": "string", "format": "handle" }, - "email": { "type": "string" }, - "relatedRecords": { "type": "array", "items": { "type": "unknown" } }, - "indexedAt": { "type": "string", "format": "datetime" }, - "moderation": { "type": "ref", "ref": "#moderationDetail" }, - "labels": { - "type": "array", - "items": { "type": "ref", "ref": "com.atproto.label.defs#label" } - }, - "invitedBy": { - "type": "ref", - "ref": "com.atproto.server.defs#inviteCode" - }, - "invites": { - "type": "array", - "items": { - "type": "ref", - "ref": "com.atproto.server.defs#inviteCode" - } - }, - "invitesDisabled": { "type": "boolean" }, - "inviteNote": { "type": "string" }, - "emailConfirmedAt": { "type": "string", "format": "datetime" } - } - }, "accountView": { "type": "object", "required": ["did", "handle", "indexedAt"], @@ -318,13 +35,6 @@ "inviteNote": { "type": "string" } } }, - "repoViewNotFound": { - "type": "object", - "required": ["did"], - "properties": { - "did": { "type": "string", "format": "did" } - } - }, "repoRef": { "type": "object", "required": ["did"], @@ -340,322 +50,6 @@ "cid": { "type": "string", "format": "cid" }, "recordUri": { "type": "string", "format": "at-uri" } } - }, - "recordView": { - "type": "object", - "required": [ - "uri", - "cid", - "value", - "blobCids", - "indexedAt", - "moderation", - "repo" - ], - "properties": { - "uri": { "type": "string", "format": "at-uri" }, - "cid": { "type": "string", "format": "cid" }, - "value": { "type": "unknown" }, - "blobCids": { - "type": "array", - "items": { "type": "string", "format": "cid" } - }, - "indexedAt": { "type": "string", "format": "datetime" }, - "moderation": { "type": "ref", "ref": "#moderation" }, - "repo": { "type": "ref", "ref": "#repoView" } - } - }, - "recordViewDetail": { - "type": "object", - "required": [ - "uri", - "cid", - "value", - "blobs", - "indexedAt", - "moderation", - "repo" - ], - "properties": { - "uri": { "type": "string", "format": "at-uri" }, - "cid": { "type": "string", "format": "cid" }, - "value": { "type": "unknown" }, - "blobs": { - "type": "array", - "items": { "type": "ref", "ref": "#blobView" } - }, - "labels": { - "type": "array", - "items": { "type": "ref", "ref": "com.atproto.label.defs#label" } - }, - "indexedAt": { "type": "string", "format": "datetime" }, - "moderation": { "type": "ref", "ref": "#moderationDetail" }, - "repo": { "type": "ref", "ref": "#repoView" } - } - }, - "recordViewNotFound": { - "type": "object", - "required": ["uri"], - "properties": { - "uri": { "type": "string", "format": "at-uri" } - } - }, - "moderation": { - "type": "object", - "properties": { - "subjectStatus": { "type": "ref", "ref": "#subjectStatusView" } - } - }, - "moderationDetail": { - "type": "object", - "properties": { - "subjectStatus": { - "type": "ref", - "ref": "#subjectStatusView" - } - } - }, - "blobView": { - "type": "object", - "required": ["cid", "mimeType", "size", "createdAt"], - "properties": { - "cid": { "type": "string", "format": "cid" }, - "mimeType": { "type": "string" }, - "size": { "type": "integer" }, - "createdAt": { "type": "string", "format": "datetime" }, - "details": { - "type": "union", - "refs": ["#imageDetails", "#videoDetails"] - }, - "moderation": { "type": "ref", "ref": "#moderation" } - } - }, - "imageDetails": { - "type": "object", - "required": ["width", "height"], - "properties": { - "width": { "type": "integer" }, - "height": { "type": "integer" } - } - }, - "videoDetails": { - "type": "object", - "required": ["width", "height", "length"], - "properties": { - "width": { "type": "integer" }, - "height": { "type": "integer" }, - "length": { "type": "integer" } - } - }, - "subjectReviewState": { - "type": "string", - "knownValues": [ - "#reviewOpen", - "#reviewEscalated", - "#reviewClosed", - "#reviewNone" - ] - }, - "reviewOpen": { - "type": "token", - "description": "Moderator review status of a subject: Open. Indicates that the subject needs to be reviewed by a moderator" - }, - "reviewEscalated": { - "type": "token", - "description": "Moderator review status of a subject: Escalated. Indicates that the subject was escalated for review by a moderator" - }, - "reviewClosed": { - "type": "token", - "description": "Moderator review status of a subject: Closed. Indicates that the subject was already reviewed and resolved by a moderator" - }, - "reviewNone": { - "type": "token", - "description": "Moderator review status of a subject: Unnecessary. Indicates that the subject does not need a review at the moment but there is probably some moderation related metadata available for it" - }, - "modEventTakedown": { - "type": "object", - "description": "Take down a subject permanently or temporarily", - "properties": { - "comment": { - "type": "string" - }, - "durationInHours": { - "type": "integer", - "description": "Indicates how long the takedown should be in effect before automatically expiring." - } - } - }, - "modEventReverseTakedown": { - "type": "object", - "description": "Revert take down action on a subject", - "properties": { - "comment": { - "type": "string", - "description": "Describe reasoning behind the reversal." - } - } - }, - "modEventResolveAppeal": { - "type": "object", - "description": "Resolve appeal on a subject", - "properties": { - "comment": { - "type": "string", - "description": "Describe resolution." - } - } - }, - "modEventComment": { - "type": "object", - "description": "Add a comment to a subject", - "required": ["comment"], - "properties": { - "comment": { - "type": "string" - }, - "sticky": { - "type": "boolean", - "description": "Make the comment persistent on the subject" - } - } - }, - "modEventReport": { - "type": "object", - "description": "Report a subject", - "required": ["reportType"], - "properties": { - "comment": { - "type": "string" - }, - "reportType": { - "type": "ref", - "ref": "com.atproto.moderation.defs#reasonType" - } - } - }, - "modEventLabel": { - "type": "object", - "description": "Apply/Negate labels on a subject", - "required": ["createLabelVals", "negateLabelVals"], - "properties": { - "comment": { - "type": "string" - }, - "createLabelVals": { - "type": "array", - "items": { "type": "string" } - }, - "negateLabelVals": { - "type": "array", - "items": { "type": "string" } - } - } - }, - "modEventAcknowledge": { - "type": "object", - "properties": { - "comment": { "type": "string" } - } - }, - "modEventEscalate": { - "type": "object", - "properties": { - "comment": { "type": "string" } - } - }, - "modEventMute": { - "type": "object", - "description": "Mute incoming reports on a subject", - "required": ["durationInHours"], - "properties": { - "comment": { "type": "string" }, - "durationInHours": { - "type": "integer", - "description": "Indicates how long the subject should remain muted." - } - } - }, - "modEventUnmute": { - "type": "object", - "description": "Unmute action on a subject", - "properties": { - "comment": { - "type": "string", - "description": "Describe reasoning behind the reversal." - } - } - }, - "modEventEmail": { - "type": "object", - "description": "Keep a log of outgoing email to a user", - "required": ["subjectLine"], - "properties": { - "subjectLine": { - "type": "string", - "description": "The subject line of the email sent to the user." - }, - "content": { - "type": "string", - "description": "The content of the email sent to the user." - }, - "comment": { - "type": "string", - "description": "Additional comment about the outgoing comm." - } - } - }, - "modEventTag": { - "type": "object", - "description": "Add/Remove a tag on a subject", - "required": ["add", "remove"], - "properties": { - "add": { - "type": "array", - "items": { "type": "string" }, - "description": "Tags to be added to the subject. If already exists, won't be duplicated." - }, - "remove": { - "type": "array", - "items": { "type": "string" }, - "description": "Tags to be removed to the subject. Ignores a tag If it doesn't exist, won't be duplicated." - }, - "comment": { - "type": "string", - "description": "Additional comment about added/removed tags." - } - } - }, - "communicationTemplateView": { - "type": "object", - "required": [ - "id", - "name", - "contentMarkdown", - "disabled", - "lastUpdatedBy", - "createdAt", - "updatedAt" - ], - "properties": { - "id": { "type": "string" }, - "name": { "type": "string", "description": "Name of the template." }, - "subject": { - "type": "string", - "description": "Content of the template, can contain markdown and variable placeholders." - }, - "contentMarkdown": { - "type": "string", - "description": "Subject of the message, used in emails." - }, - "disabled": { "type": "boolean" }, - "lastUpdatedBy": { - "type": "string", - "format": "did", - "description": "DID of the user who last updated the template." - }, - "createdAt": { "type": "string", "format": "datetime" }, - "updatedAt": { "type": "string", "format": "datetime" } - } } } } diff --git a/lexicons/com/atproto/admin/deleteCommunicationTemplate.json b/lexicons/com/atproto/admin/deleteCommunicationTemplate.json deleted file mode 100644 index 58861757c06..00000000000 --- a/lexicons/com/atproto/admin/deleteCommunicationTemplate.json +++ /dev/null @@ -1,20 +0,0 @@ -{ - "lexicon": 1, - "id": "com.atproto.admin.deleteCommunicationTemplate", - "defs": { - "main": { - "type": "procedure", - "description": "Delete a communication template.", - "input": { - "encoding": "application/json", - "schema": { - "type": "object", - "required": ["id"], - "properties": { - "id": { "type": "string" } - } - } - } - } - } -} diff --git a/lexicons/com/atproto/admin/emitModerationEvent.json b/lexicons/com/atproto/admin/emitModerationEvent.json deleted file mode 100644 index 44ef72aad5b..00000000000 --- a/lexicons/com/atproto/admin/emitModerationEvent.json +++ /dev/null @@ -1,55 +0,0 @@ -{ - "lexicon": 1, - "id": "com.atproto.admin.emitModerationEvent", - "defs": { - "main": { - "type": "procedure", - "description": "Take a moderation action on an actor.", - "input": { - "encoding": "application/json", - "schema": { - "type": "object", - "required": ["event", "subject", "createdBy"], - "properties": { - "event": { - "type": "union", - "refs": [ - "com.atproto.admin.defs#modEventTakedown", - "com.atproto.admin.defs#modEventAcknowledge", - "com.atproto.admin.defs#modEventEscalate", - "com.atproto.admin.defs#modEventComment", - "com.atproto.admin.defs#modEventLabel", - "com.atproto.admin.defs#modEventReport", - "com.atproto.admin.defs#modEventMute", - "com.atproto.admin.defs#modEventReverseTakedown", - "com.atproto.admin.defs#modEventUnmute", - "com.atproto.admin.defs#modEventEmail", - "com.atproto.admin.defs#modEventTag" - ] - }, - "subject": { - "type": "union", - "refs": [ - "com.atproto.admin.defs#repoRef", - "com.atproto.repo.strongRef" - ] - }, - "subjectBlobCids": { - "type": "array", - "items": { "type": "string", "format": "cid" } - }, - "createdBy": { "type": "string", "format": "did" } - } - } - }, - "output": { - "encoding": "application/json", - "schema": { - "type": "ref", - "ref": "com.atproto.admin.defs#modEventView" - } - }, - "errors": [{ "name": "SubjectHasAction" }] - } - } -} diff --git a/lexicons/com/atproto/admin/getModerationEvent.json b/lexicons/com/atproto/admin/getModerationEvent.json deleted file mode 100644 index 71499b94d9a..00000000000 --- a/lexicons/com/atproto/admin/getModerationEvent.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "lexicon": 1, - "id": "com.atproto.admin.getModerationEvent", - "defs": { - "main": { - "type": "query", - "description": "Get details about a moderation event.", - "parameters": { - "type": "params", - "required": ["id"], - "properties": { - "id": { "type": "integer" } - } - }, - "output": { - "encoding": "application/json", - "schema": { - "type": "ref", - "ref": "com.atproto.admin.defs#modEventViewDetail" - } - } - } - } -} diff --git a/lexicons/com/atproto/admin/getRecord.json b/lexicons/com/atproto/admin/getRecord.json deleted file mode 100644 index 7c513bec72c..00000000000 --- a/lexicons/com/atproto/admin/getRecord.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "lexicon": 1, - "id": "com.atproto.admin.getRecord", - "defs": { - "main": { - "type": "query", - "description": "Get details about a record.", - "parameters": { - "type": "params", - "required": ["uri"], - "properties": { - "uri": { "type": "string", "format": "at-uri" }, - "cid": { "type": "string", "format": "cid" } - } - }, - "output": { - "encoding": "application/json", - "schema": { - "type": "ref", - "ref": "com.atproto.admin.defs#recordViewDetail" - } - }, - "errors": [{ "name": "RecordNotFound" }] - } - } -} diff --git a/lexicons/com/atproto/admin/getRepo.json b/lexicons/com/atproto/admin/getRepo.json deleted file mode 100644 index c7966158f11..00000000000 --- a/lexicons/com/atproto/admin/getRepo.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "lexicon": 1, - "id": "com.atproto.admin.getRepo", - "defs": { - "main": { - "type": "query", - "description": "Get details about a repository.", - "parameters": { - "type": "params", - "required": ["did"], - "properties": { - "did": { "type": "string", "format": "did" } - } - }, - "output": { - "encoding": "application/json", - "schema": { - "type": "ref", - "ref": "com.atproto.admin.defs#repoViewDetail" - } - }, - "errors": [{ "name": "RepoNotFound" }] - } - } -} diff --git a/lexicons/com/atproto/admin/listCommunicationTemplates.json b/lexicons/com/atproto/admin/listCommunicationTemplates.json deleted file mode 100644 index 74d5a399f15..00000000000 --- a/lexicons/com/atproto/admin/listCommunicationTemplates.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "lexicon": 1, - "id": "com.atproto.admin.listCommunicationTemplates", - "defs": { - "main": { - "type": "query", - "description": "Get list of all communication templates.", - "output": { - "encoding": "application/json", - "schema": { - "type": "object", - "required": ["communicationTemplates"], - "properties": { - "communicationTemplates": { - "type": "array", - "items": { - "type": "ref", - "ref": "com.atproto.admin.defs#communicationTemplateView" - } - } - } - } - } - } - } -} diff --git a/lexicons/com/atproto/admin/queryModerationEvents.json b/lexicons/com/atproto/admin/queryModerationEvents.json deleted file mode 100644 index 239c17bd115..00000000000 --- a/lexicons/com/atproto/admin/queryModerationEvents.json +++ /dev/null @@ -1,104 +0,0 @@ -{ - "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) 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." - }, - "createdAfter": { - "type": "string", - "format": "datetime", - "description": "Retrieve events created after a given timestamp" - }, - "createdBefore": { - "type": "string", - "format": "datetime", - "description": "Retrieve events created before a given 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 - }, - "hasComment": { - "type": "boolean", - "description": "If true, only events with comments are returned" - }, - "comment": { - "type": "string", - "description": "If specified, only events with comments containing the keyword are returned" - }, - "addedLabels": { - "type": "array", - "items": { "type": "string" }, - "description": "If specified, only events where all of these labels were added are returned" - }, - "removedLabels": { - "type": "array", - "items": { "type": "string" }, - "description": "If specified, only events where all of these labels were removed are returned" - }, - "addedTags": { - "type": "array", - "items": { "type": "string" }, - "description": "If specified, only events where all of these tags were added are returned" - }, - "removedTags": { - "type": "array", - "items": { "type": "string" }, - "description": "If specified, only events where all of these tags were removed are returned" - }, - "reportTypes": { - "type": "array", - "items": { - "type": "string" - } - }, - "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" - } - } - } - } - } - } - } -} diff --git a/lexicons/com/atproto/admin/queryModerationStatuses.json b/lexicons/com/atproto/admin/queryModerationStatuses.json deleted file mode 100644 index 5ac915ceef1..00000000000 --- a/lexicons/com/atproto/admin/queryModerationStatuses.json +++ /dev/null @@ -1,107 +0,0 @@ -{ - "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" - }, - "appealed": { - "type": "boolean", - "description": "Get subjects in unresolved appealed status" - }, - "limit": { - "type": "integer", - "minimum": 1, - "maximum": 100, - "default": 50 - }, - "tags": { - "type": "array", - "items": { "type": "string" } - }, - "excludeTags": { - "type": "array", - "items": { "type": "string" } - }, - "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" - } - } - } - } - } - } - } -} diff --git a/lexicons/com/atproto/admin/searchRepos.json b/lexicons/com/atproto/admin/searchRepos.json deleted file mode 100644 index acc5a70f942..00000000000 --- a/lexicons/com/atproto/admin/searchRepos.json +++ /dev/null @@ -1,44 +0,0 @@ -{ - "lexicon": 1, - "id": "com.atproto.admin.searchRepos", - "defs": { - "main": { - "type": "query", - "description": "Find repositories based on a search term.", - "parameters": { - "type": "params", - "properties": { - "term": { - "type": "string", - "description": "DEPRECATED: use 'q' instead" - }, - "q": { "type": "string" }, - "limit": { - "type": "integer", - "minimum": 1, - "maximum": 100, - "default": 50 - }, - "cursor": { "type": "string" } - } - }, - "output": { - "encoding": "application/json", - "schema": { - "type": "object", - "required": ["repos"], - "properties": { - "cursor": { "type": "string" }, - "repos": { - "type": "array", - "items": { - "type": "ref", - "ref": "com.atproto.admin.defs#repoView" - } - } - } - } - } - } - } -} diff --git a/lexicons/com/atproto/admin/updateCommunicationTemplate.json b/lexicons/com/atproto/admin/updateCommunicationTemplate.json deleted file mode 100644 index 0f7f3612000..00000000000 --- a/lexicons/com/atproto/admin/updateCommunicationTemplate.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "lexicon": 1, - "id": "com.atproto.admin.updateCommunicationTemplate", - "defs": { - "main": { - "type": "procedure", - "description": "Administrative action to update an existing communication template. Allows passing partial fields to patch specific fields only.", - "input": { - "encoding": "application/json", - "schema": { - "type": "object", - "required": ["id"], - "properties": { - "id": { - "type": "string", - "description": "ID of the template to be updated." - }, - "name": { - "type": "string", - "description": "Name of the template." - }, - "contentMarkdown": { - "type": "string", - "description": "Content of the template, markdown supported, can contain variable placeholders." - }, - "subject": { - "type": "string", - "description": "Subject of the message, used in emails." - }, - "updatedBy": { - "type": "string", - "format": "did", - "description": "DID of the user who is updating the template." - }, - "disabled": { - "type": "boolean" - } - } - } - }, - "output": { - "encoding": "application/json", - "schema": { - "type": "ref", - "ref": "com.atproto.admin.defs#communicationTemplateView" - } - } - } - } -}