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