appBskyFeedGetPostVersions top-level constant

Map<String, dynamic> const appBskyFeedGetPostVersions

app.bsky.feed.getPostVersions

Implementation

const appBskyFeedGetPostVersions = <String, dynamic>{
  "lexicon": 1,
  "id": "app.bsky.feed.getPostVersions",
  "defs": {
    "main": {
      "type": "query",
      "description":
          "Get the version history of a post. Only versions the AppView accepted as valid edits are included.",
      "parameters": {
        "type": "params",
        "required": ["uri"],
        "properties": {
          "uri": {
            "type": "string",
            "format": "at-uri",
            "description": "Reference (AT-URI) of post record",
          },
        },
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": ["uri", "versions"],
          "properties": {
            "uri": {"type": "string", "format": "at-uri"},
            "versions": {
              "type": "array",
              "description":
                  "Versions of the post, newest first. Includes the current version, so an unedited post has a single entry. Each view describes the version at its CID: counts and viewer state are scoped to that CID, editedAt is when that version was indexed (absent on the original), and indexedAt is the original post's.",
              "items": {"type": "ref", "ref": "app.bsky.feed.defs#postView"},
            },
          },
        },
      },
      "errors": [
        {"name": "NotFound"},
      ],
    },
  },
};