{
"id": "pub.chive.governance.listTrustedEditors",
"defs": {
"main": {
"type": "query",
"errors": [
{
"name": "AuthenticationRequired"
},
{
"name": "Unauthorized"
}
],
"output": {
"schema": {
"type": "object",
"required": [
"editors",
"total"
],
"properties": {
"total": {
"type": "integer",
"description": "Total number of editors"
},
"cursor": {
"type": "string",
"description": "Cursor for next page"
},
"editors": {
"type": "array",
"items": {
"ref": "#trustedEditor",
"type": "ref"
},
"description": "List of trusted editors"
}
}
},
"encoding": "application/json"
},
"parameters": {
"type": "params",
"properties": {
"role": {
"type": "string",
"description": "Filter by role",
"knownValues": [
"community-member",
"trusted-editor",
"graph-editor",
"domain-expert",
"administrator"
]
},
"limit": {
"type": "integer",
"default": 50,
"maximum": 100,
"minimum": 1,
"description": "Maximum number of results to return"
},
"cursor": {
"type": "string",
"description": "Pagination cursor for next page"
}
}
},
"description": "List all users with trusted editor or higher roles (admin only)"
},
"trustedEditor": {
"type": "object",
"required": [
"did",
"role",
"roleGrantedAt",
"hasDelegation",
"metrics"
],
"properties": {
"did": {
"type": "string",
"format": "did",
"description": "Editor DID"
},
"role": {
"type": "string",
"description": "Current governance role",
"knownValues": [
"community-member",
"trusted-editor",
"graph-editor",
"domain-expert",
"administrator"
]
},
"handle": {
"type": "string",
"description": "Editor handle"
},
"metrics": {
"ref": "#reputationMetrics",
"type": "ref"
},
"displayName": {
"type": "string",
"description": "Editor display name"
},
"hasDelegation": {
"type": "boolean",
"description": "Whether editor has an active PDS delegation"
},
"roleGrantedAt": {
"type": "integer",
"description": "Timestamp when role was granted"
},
"roleGrantedBy": {
"type": "string",
"format": "did",
"description": "DID of admin who granted the role"
},
"dailyRateLimit": {
"type": "integer",
"minimum": 0,
"description": "Daily rate limit for delegation"
},
"delegationExpiresAt": {
"type": "integer",
"description": "Delegation expiration timestamp"
},
"recordsCreatedToday": {
"type": "integer",
"minimum": 0,
"description": "Records created today under delegation"
}
},
"description": "Trusted editor record"
},
"reputationMetrics": {
"type": "object",
"required": [
"did",
"accountCreatedAt",
"accountAgeDays",
"eprintCount",
"wellEndorsedEprintCount",
"totalEndorsements",
"proposalCount",
"voteCount",
"successfulProposals",
"warningCount",
"violationCount",
"reputationScore",
"role",
"eligibleForTrustedEditor",
"missingCriteria"
],
"properties": {
"did": {
"type": "string",
"format": "did",
"description": "User DID"
},
"role": {
"type": "string",
"description": "Current governance role",
"knownValues": [
"community-member",
"trusted-editor",
"graph-editor",
"domain-expert",
"administrator"
]
},
"voteCount": {
"type": "integer",
"minimum": 0,
"description": "Votes cast"
},
"eprintCount": {
"type": "integer",
"minimum": 0,
"description": "Total eprints authored"
},
"warningCount": {
"type": "integer",
"minimum": 0,
"description": "Moderation warnings received"
},
"proposalCount": {
"type": "integer",
"minimum": 0,
"description": "Governance proposals submitted"
},
"accountAgeDays": {
"type": "integer",
"minimum": 0,
"description": "Account age in days"
},
"violationCount": {
"type": "integer",
"minimum": 0,
"description": "Policy violations recorded"
},
"missingCriteria": {
"type": "array",
"items": {
"type": "string"
},
"description": "List of missing eligibility criteria"
},
"reputationScore": {
"type": "integer",
"minimum": 0,
"description": "Computed reputation score"
},
"accountCreatedAt": {
"type": "integer",
"description": "Account creation timestamp"
},
"totalEndorsements": {
"type": "integer",
"minimum": 0,
"description": "Total endorsements received"
},
"successfulProposals": {
"type": "integer",
"minimum": 0,
"description": "Proposals that were approved"
},
"wellEndorsedEprintCount": {
"type": "integer",
"minimum": 0,
"description": "Eprints with substantial endorsements"
},
"eligibleForTrustedEditor": {
"type": "boolean",
"description": "Whether user meets trusted editor criteria"
}
},
"description": "User reputation metrics for governance"
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1,
"revision": 1
}