check in lexicons

This commit is contained in:
Samuel Newman
2025-04-30 21:15:55 +03:00
parent 727a696970
commit d5b5b21617
259 changed files with 13100 additions and 0 deletions
@@ -0,0 +1,71 @@
{
"lexicon": 1,
"id": "com.atproto.moderation.createReport",
"defs": {
"main": {
"type": "procedure",
"description": "Submit a moderation report regarding an atproto account or record. Implemented by moderation services (with PDS proxying), and requires auth.",
"input": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["reasonType", "subject"],
"properties": {
"reasonType": {
"type": "ref",
"description": "Indicates the broad category of violation the report is for.",
"ref": "com.atproto.moderation.defs#reasonType"
},
"reason": {
"type": "string",
"maxGraphemes": 2000,
"maxLength": 20000,
"description": "Additional context about the content and violation."
},
"subject": {
"type": "union",
"refs": [
"com.atproto.admin.defs#repoRef",
"com.atproto.repo.strongRef"
]
}
}
}
},
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": [
"id",
"reasonType",
"subject",
"reportedBy",
"createdAt"
],
"properties": {
"id": { "type": "integer" },
"reasonType": {
"type": "ref",
"ref": "com.atproto.moderation.defs#reasonType"
},
"reason": {
"type": "string",
"maxGraphemes": 2000,
"maxLength": 20000
},
"subject": {
"type": "union",
"refs": [
"com.atproto.admin.defs#repoRef",
"com.atproto.repo.strongRef"
]
},
"reportedBy": { "type": "string", "format": "did" },
"createdAt": { "type": "string", "format": "datetime" }
}
}
}
}
}
}
+51
View File
@@ -0,0 +1,51 @@
{
"lexicon": 1,
"id": "com.atproto.moderation.defs",
"defs": {
"reasonType": {
"type": "string",
"knownValues": [
"com.atproto.moderation.defs#reasonSpam",
"com.atproto.moderation.defs#reasonViolation",
"com.atproto.moderation.defs#reasonMisleading",
"com.atproto.moderation.defs#reasonSexual",
"com.atproto.moderation.defs#reasonRude",
"com.atproto.moderation.defs#reasonOther",
"com.atproto.moderation.defs#reasonAppeal"
]
},
"reasonSpam": {
"type": "token",
"description": "Spam: frequent unwanted promotion, replies, mentions"
},
"reasonViolation": {
"type": "token",
"description": "Direct violation of server rules, laws, terms of service"
},
"reasonMisleading": {
"type": "token",
"description": "Misleading identity, affiliation, or content"
},
"reasonSexual": {
"type": "token",
"description": "Unwanted or mislabeled sexual content"
},
"reasonRude": {
"type": "token",
"description": "Rude, harassing, explicit, or otherwise unwelcoming behavior"
},
"reasonOther": {
"type": "token",
"description": "Other: reports not falling under another report category"
},
"reasonAppeal": {
"type": "token",
"description": "Appeal: appeal a previously taken moderation action"
},
"subjectType": {
"type": "string",
"description": "Tag describing a type of subject that might be reported.",
"knownValues": ["account", "record", "chat"]
}
}
}