{
"id": "social.colibri.community.suppressMessageEmbeds",
"defs": {
"main": {
"type": "procedure",
"errors": [
{
"name": "AppViewNotAuthorized",
"description": "The acting account has not published this AppView as authorized to act for it."
},
{
"name": "AuthRequired",
"description": "Missing, malformed, or unverifiable service auth."
},
{
"name": "CommunityCredentialsUnrecoverable",
"description": "The AppView cannot write to the community's repo and could not repair its own access."
},
{
"name": "Forbidden",
"description": "The caller lacks the permission this method requires."
},
{
"name": "InvalidRequest",
"description": "A parameter or body field was missing or malformed."
},
{
"name": "NotCommunityHub",
"description": "This AppView does not administer the community; the hub field names the one that does."
},
{
"name": "PdsUnavailable",
"description": "The PDS this operation needs is unreachable or is not a PDS."
},
{
"name": "UpstreamFailure",
"description": "A service outside this AppView failed."
}
],
"output": {
"schema": {
"type": "object",
"required": [
"message"
],
"properties": {
"message": {
"type": "string",
"format": "at-uri"
}
}
},
"encoding": "application/json"
},
"parameters": {
"type": "params",
"required": [
"community",
"message",
"embeds"
],
"properties": {
"embeds": {
"type": "array",
"items": {
"type": "string",
"format": "uri"
},
"description": "URLs whose previews should be suppressed."
},
"message": {
"type": "string",
"format": "at-uri"
},
"community": {
"type": "string",
"format": "at-uri"
}
}
},
"description": "Suppresses link previews on a message within a community by writing a suppressEmbeds moderation record. Does not touch the author's own suppression, which only the author may change."
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}