# pub.chive.governance.listElevationRequests

> 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.listElevationRequests)
- [Documentation](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.governance.listElevationRequests/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:7natp5xae72bddaqlkef2t4e/pub.chive.governance.listElevationRequests/examples)

## Definitions

### `pub.chive.governance.listElevationRequests`

**Type**: `query`

List pending elevation requests for admin review. Only accessible by administrators.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `limit` | `integer` | No | Maximum number of results to return |
| `cursor` | `string` | No | Pagination cursor for next page |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `total` | `integer` | Yes | Total number of requests |
| `cursor` | `string` | No | Cursor for next page |
| `requests` | `array` | Yes | List of elevation requests |

#### Errors

- **AuthenticationRequired**
- **Unauthorized**

### `pub.chive.governance.listElevationRequests#elevationRequest`

**Type**: `object`

Elevation request record

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `id` | `string` | Yes | Request identifier |
| `did` | `string` (did) | Yes | Requester DID |
| `handle` | `string` | No | Requester handle |
| `metrics` | `ref` → `#reputationMetrics` | Yes |  |
| `currentRole` | `string` | Yes | Current role |
| `displayName` | `string` | No | Requester display name |
| `requestedAt` | `string` (datetime) | Yes | Request timestamp |
| `requestedRole` | `string` | Yes | Role being requested |
| `verificationNotes` | `string` | No | Admin verification notes |

### `pub.chive.governance.listElevationRequests#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.listElevationRequests",
  "defs": {
    "main": {
      "type": "query",
      "errors": [
        {
          "name": "AuthenticationRequired"
        },
        {
          "name": "Unauthorized"
        }
      ],
      "output": {
        "schema": {
          "type": "object",
          "required": [
            "requests",
            "total"
          ],
          "properties": {
            "total": {
              "type": "integer",
              "description": "Total number of requests"
            },
            "cursor": {
              "type": "string",
              "description": "Cursor for next page"
            },
            "requests": {
              "type": "array",
              "items": {
                "ref": "#elevationRequest",
                "type": "ref"
              },
              "description": "List of elevation requests"
            }
          }
        },
        "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 pending elevation requests for admin review. Only accessible by administrators."
    },
    "elevationRequest": {
      "type": "object",
      "required": [
        "id",
        "did",
        "requestedRole",
        "currentRole",
        "requestedAt",
        "metrics"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "Request identifier"
        },
        "did": {
          "type": "string",
          "format": "did",
          "description": "Requester DID"
        },
        "handle": {
          "type": "string",
          "description": "Requester handle"
        },
        "metrics": {
          "ref": "#reputationMetrics",
          "type": "ref"
        },
        "currentRole": {
          "type": "string",
          "description": "Current role",
          "knownValues": [
            "community-member",
            "trusted-editor",
            "administrator"
          ]
        },
        "displayName": {
          "type": "string",
          "description": "Requester display name"
        },
        "requestedAt": {
          "type": "string",
          "format": "datetime",
          "description": "Request timestamp"
        },
        "requestedRole": {
          "type": "string",
          "description": "Role being requested",
          "knownValues": [
            "trusted-editor",
            "administrator"
          ]
        },
        "verificationNotes": {
          "type": "string",
          "description": "Admin verification notes"
        }
      },
      "description": "Elevation request 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
}
```
