# at.happyproto.registry.resolveChannel

> Published by [happyproto.at](https://lexicon.garden/identity/did:plc:mo7vq4jbioxwafy5zkcc3eux)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:mo7vq4jbioxwafy5zkcc3eux/at.happyproto.registry.resolveChannel)
- [Documentation](https://lexicon.garden/lexicon/did:plc:mo7vq4jbioxwafy5zkcc3eux/at.happyproto.registry.resolveChannel/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:mo7vq4jbioxwafy5zkcc3eux/at.happyproto.registry.resolveChannel/examples)

## Definitions

### `at.happyproto.registry.resolveChannel`

**Type**: `query`

The version a plugin's channel points at.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `channel` | `string` | Yes | The channel's name. |
| `did` | `string` (did) | Yes | The publisher. |
| `name` | `string` | Yes | The project's name, which is the record key of its software.release.project: 1 to 64 lowercase letters, digits and interior hyphens. |

#### Output

**Encoding**: `application/json`

#### Errors

- **ChannelNotFound**: The project has no channel of that name indexed.
- **VersionNotFound**: The channel points at a version the registry has not indexed.
- **NotConfigured**: The registry has no identity configured, so it cannot read its own state. An operator problem, not a caller's.

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "The version a plugin's channel points at.",
      "errors": [
        {
          "description": "The project has no channel of that name indexed.",
          "name": "ChannelNotFound"
        },
        {
          "description": "The channel points at a version the registry has not indexed.",
          "name": "VersionNotFound"
        },
        {
          "description": "The registry has no identity configured, so it cannot read its own state. An operator problem, not a caller's.",
          "name": "NotConfigured"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "ref": "at.happyproto.registry.defs#versionView",
          "type": "ref"
        }
      },
      "parameters": {
        "properties": {
          "channel": {
            "description": "The channel's name.",
            "knownValues": [
              "latest",
              "beta",
              "alpha"
            ],
            "maxLength": 64,
            "type": "string"
          },
          "did": {
            "description": "The publisher.",
            "format": "did",
            "type": "string"
          },
          "name": {
            "description": "The project's name, which is the record key of its software.release.project: 1 to 64 lowercase letters, digits and interior hyphens.",
            "maxLength": 64,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "did",
          "name",
          "channel"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "at.happyproto.registry.resolveChannel",
  "lexicon": 1
}
```
