pub.chive.sync.checkStaleness

lexicons.governance.chive.pub

Documentation

Check if indexed data is stale compared to PDS

main query

Check if indexed data is stale compared to PDS

Parameters

uri string at-uri Required

AT-URI of the record to check

Output

Encodingapplication/json
indexedAt stringdatetime Optional

When the record was indexed

indexedCid stringcid Optional

CID in our index

isStale boolean Required

Whether indexed data is stale

pdsCid stringcid Optional

Current CID on PDS

pdsUrl string Optional

Source PDS URL

uri stringat-uri Required

An AT Protocol URI (e.g., at://did:plc:xyz/app.bsky.feed.post/abc).

Errors

NotFound
Try It

Requests are sent directly from your browser. Some servers may block requests due to CORS.

Base URL for XRPC calls (e.g., https://api.bsky.social)
Parameters
AT-URI of the record to check
View raw schema
{
  "description": "Check if indexed data is stale compared to PDS",
  "errors": [
    {
      "name": "NotFound"
    }
  ],
  "output": {
    "encoding": "application/json",
    "schema": {
      "properties": {
        "indexedAt": {
          "description": "When the record was indexed",
          "format": "datetime",
          "type": "string"
        },
        "indexedCid": {
          "description": "CID in our index",
          "format": "cid",
          "type": "string"
        },
        "isStale": {
          "description": "Whether indexed data is stale",
          "type": "boolean"
        },
        "pdsCid": {
          "description": "Current CID on PDS",
          "format": "cid",
          "type": "string"
        },
        "pdsUrl": {
          "description": "Source PDS URL",
          "type": "string"
        },
        "uri": {
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri",
        "isStale"
      ],
      "type": "object"
    }
  },
  "parameters": {
    "properties": {
      "uri": {
        "description": "AT-URI of the record to check",
        "format": "at-uri",
        "type": "string"
      }
    },
    "required": [
      "uri"
    ],
    "type": "params"
  },
  "type": "query"
}

Lexicon Garden

@