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