{
"id": "pub.chive.admin.getBackfillStatus",
"defs": {
"main": {
"type": "query",
"errors": [
{
"name": "AuthenticationRequired"
},
{
"name": "AdminRequired"
}
],
"output": {
"schema": {
"type": "object",
"properties": {
"operation": {
"ref": "#backfillOperation",
"type": "ref",
"description": "Single operation (when filtered by ID)"
},
"operations": {
"type": "array",
"items": {
"ref": "#backfillOperation",
"type": "ref"
},
"description": "Backfill operations"
}
}
},
"encoding": "application/json"
},
"parameters": {
"type": "params",
"properties": {
"id": {
"type": "string",
"description": "Filter by specific operation ID"
},
"status": {
"type": "string",
"description": "Filter by operation status",
"knownValues": [
"running",
"completed",
"failed",
"cancelled"
]
}
}
},
"description": "Get status of backfill operations"
},
"backfillOperation": {
"type": "object",
"required": [
"id",
"type",
"status",
"startedAt",
"recordsProcessed"
],
"properties": {
"id": {
"type": "string",
"description": "Operation ID"
},
"type": {
"type": "string",
"description": "Backfill operation type",
"knownValues": [
"pds-scan",
"freshness-scan",
"citation-extraction",
"full-reindex",
"governance-sync",
"did-sync"
]
},
"error": {
"type": "string",
"description": "Error message if failed"
},
"status": {
"type": "string",
"description": "Operation status",
"knownValues": [
"running",
"completed",
"failed",
"cancelled"
]
},
"startedAt": {
"type": "string",
"format": "datetime",
"description": "Operation start time"
},
"startedBy": {
"type": "string",
"format": "did",
"description": "DID of the admin who started the operation"
},
"completedAt": {
"type": "string",
"format": "datetime",
"description": "Operation completion time"
},
"totalRecords": {
"type": "integer",
"description": "Total records to process (if known)"
},
"recordsProcessed": {
"type": "integer",
"description": "Number of records processed so far"
}
},
"description": "A backfill operation record"
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1,
"revision": 1
}