net.nusno.gyoka.feed.trimPosts

Keep the leading posts in the current feed display order and remove the rest.

Repository @nusno.net did:plc:gjkxkrudpqumaiiytxodmpaj namespace authority
Details · procedure
Kindprocedure
Authorityfeed.gyoka.nusno.net
Commit rev3n2xvbohadq24
Indexed
cid bafyreieadlsczhupzcwhrgdajmbvbhllh7j5wssltvqs2rwnq5whnv4ps4

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Keep the leading posts in the current feed display order and remove the rest.",
      "errors": [
        {
          "description": "Returned when service authentication is required and the caller is not authenticated.",
          "name": "AuthenticationRequired"
        },
        {
          "description": "Returned when the authenticated caller is not in the admin allowlist.",
          "name": "Forbidden"
        },
        {
          "description": "Returned when request input is invalid.",
          "name": "BadRequest"
        },
        {
          "description": "Returned when the target feed URI is not registered.",
          "name": "UnknownFeed"
        },
        {
          "description": "Returned when a concurrent mutation changes the feed before trimming starts.",
          "name": "RevisionConflict"
        },
        {
          "description": "Returned when posts cannot be trimmed.",
          "name": "InternalServerError"
        }
      ],
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "feed": {
              "format": "at-uri",
              "type": "string"
            },
            "remain": {
              "minimum": 0,
              "type": "integer"
            }
          },
          "required": [
            "feed",
            "remain"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "deletedCount": {
              "minimum": 0,
              "type": "integer"
            },
            "feed": {
              "format": "at-uri",
              "type": "string"
            },
            "orderRevision": {
              "description": "Current feed order revision after trimming.",
              "minimum": 0,
              "type": "integer"
            }
          },
          "required": [
            "feed",
            "deletedCount",
            "orderRevision"
          ],
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "net.nusno.gyoka.feed.trimPosts",
  "lexicon": 1
}