{
"id": "pub.chive.governance.listDelegations",
"defs": {
"main": {
"type": "query",
"errors": [
{
"name": "AuthenticationRequired"
},
{
"name": "Unauthorized"
}
],
"output": {
"schema": {
"type": "object",
"required": [
"delegations",
"total"
],
"properties": {
"total": {
"type": "integer",
"description": "Total number of delegations"
},
"cursor": {
"type": "string",
"description": "Cursor for next page"
},
"delegations": {
"type": "array",
"items": {
"ref": "#delegation",
"type": "ref"
},
"description": "List of delegations"
}
}
},
"encoding": "application/json"
},
"parameters": {
"type": "params",
"properties": {
"limit": {
"type": "integer",
"default": 20,
"maximum": 100,
"minimum": 1,
"description": "Maximum number of results to return"
},
"cursor": {
"type": "string",
"description": "Pagination cursor for next page"
}
}
},
"description": "List active PDS delegations. Only accessible by administrators."
},
"delegation": {
"type": "object",
"required": [
"id",
"delegateDid",
"collections",
"expiresAt",
"maxRecordsPerDay",
"recordsCreatedToday",
"grantedAt",
"grantedBy",
"active"
],
"properties": {
"id": {
"type": "string",
"description": "Delegation identifier"
},
"active": {
"type": "boolean",
"description": "Whether the delegation is currently active"
},
"handle": {
"type": "string",
"description": "Delegate handle"
},
"expiresAt": {
"type": "integer",
"description": "Expiration timestamp"
},
"grantedAt": {
"type": "integer",
"description": "Timestamp when delegation was granted"
},
"grantedBy": {
"type": "string",
"format": "did",
"description": "DID of admin who granted the delegation"
},
"collections": {
"type": "array",
"items": {
"type": "string"
},
"description": "NSID collections the delegation covers"
},
"delegateDid": {
"type": "string",
"format": "did",
"description": "DID of the delegate"
},
"displayName": {
"type": "string",
"description": "Delegate display name"
},
"maxRecordsPerDay": {
"type": "integer",
"minimum": 0,
"description": "Maximum records delegate can create per day"
},
"recordsCreatedToday": {
"type": "integer",
"minimum": 0,
"description": "Records created today under this delegation"
}
},
"description": "PDS delegation record"
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1,
"revision": 1
}