# pub.chive.governance.getEditorStatus

> Published by [chive.pub](https://lexicon.garden/identity/did:plc:7natp5xae72bddaqlkef2t4e)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.governance.getEditorStatus)
- [Documentation](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.governance.getEditorStatus/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.governance.getEditorStatus/examples)

## Definitions

### `pub.chive.governance.getEditorStatus`

**Type**: `query`

Get the trusted editor status and reputation metrics for a user

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | No | User DID (defaults to authenticated user) |

#### Output

**Encoding**: `application/json`

#### Errors

- **AuthenticationRequired**
- **NotFound**

### `pub.chive.governance.getEditorStatus#editorStatus`

**Type**: `object`

Editor status and metrics

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes | User DID |
| `role` | `string` | Yes | Current governance role |
| `metrics` | `ref` → `#reputationMetrics` | Yes |  |
| `displayName` | `string` | No | User display name |
| `hasDelegation` | `boolean` | Yes | Whether user has an active PDS delegation |
| `roleGrantedAt` | `integer` | No | Timestamp when role was granted |
| `roleGrantedBy` | `string` (did) | No | DID of admin who granted the role |
| `dailyRateLimit` | `integer` | No | Daily rate limit for delegation |
| `delegationExpiresAt` | `integer` | No | Delegation expiration timestamp |
| `recordsCreatedToday` | `integer` | No | Records created today under delegation |
| `delegationCollections` | `array` | No | Collections the delegation covers |

### `pub.chive.governance.getEditorStatus#reputationMetrics`

**Type**: `object`

User reputation metrics for governance

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes | User DID |
| `role` | `string` | Yes | Current governance role |
| `voteCount` | `integer` | Yes | Votes cast |
| `eprintCount` | `integer` | Yes | Total eprints authored |
| `warningCount` | `integer` | Yes | Moderation warnings received |
| `proposalCount` | `integer` | Yes | Governance proposals submitted |
| `accountAgeDays` | `integer` | Yes | Account age in days |
| `violationCount` | `integer` | Yes | Policy violations recorded |
| `missingCriteria` | `array` | Yes | List of missing eligibility criteria |
| `reputationScore` | `integer` | Yes | Computed reputation score |
| `accountCreatedAt` | `integer` | Yes | Account creation timestamp |
| `totalEndorsements` | `integer` | Yes | Total endorsements received |
| `successfulProposals` | `integer` | Yes | Proposals that were approved |
| `wellEndorsedEprintCount` | `integer` | Yes | Eprints with substantial endorsements |
| `eligibleForTrustedEditor` | `boolean` | Yes | Whether user meets trusted editor criteria |

## Raw Schema

```json
{
  "id": "pub.chive.governance.getEditorStatus",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "AuthenticationRequired"
        },
        {
          "name": "NotFound"
        }
      ],
      "output": {
        "schema": {
          "ref": "#editorStatus",
          "type": "ref"
        },
        "encoding": "application/json"
      },
      "parameters": {
        "type": "params",
        "properties": {
          "did": {
            "type": "string",
            "format": "did",
            "description": "User DID (defaults to authenticated user)"
          }
        }
      },
      "description": "Get the trusted editor status and reputation metrics for a user"
    },
    "editorStatus": {
      "type": "object",
      "required": [
        "did",
        "role",
        "hasDelegation",
        "metrics"
      ],
      "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"
          ]
        },
        "metrics": {
          "ref": "#reputationMetrics",
          "type": "ref"
        },
        "displayName": {
          "type": "string",
          "description": "User display name"
        },
        "hasDelegation": {
          "type": "boolean",
          "description": "Whether user 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"
        },
        "delegationCollections": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Collections the delegation covers"
        }
      },
      "description": "Editor status and metrics"
    },
    "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
}
```
