# at.happyproto.registry.resolveChannel

> The version a plugin's channel points at.

- Kind: query
- Authority: registry.happyproto.at
- Lexicon: 1
- Published by [happyproto.at](https://lexicon.garden/identity/did:plc:mo7vq4jbioxwafy5zkcc3eux), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:mo7vq4jbioxwafy5zkcc3eux/at.happyproto.registry.resolveChannel)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:mo7vq4jbioxwafy5zkcc3eux/at.happyproto.registry.resolveChannel/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:mo7vq4jbioxwafy5zkcc3eux/at.happyproto.registry.resolveChannel/analytics)

## Query (`at.happyproto.registry.resolveChannel`)

Type: query · GET

### Parameters (query string)

- `channel` (string, required): The channel's name.
  - Constraints: maxLength: 64, knownValues: latest | beta | alpha
- `did` (string · did, required): The publisher.
- `name` (string, required): The project's name, which is the record key of its software.release.project: 1 to 64 lowercase letters, digits and interior hyphens.
  - Constraints: minLength: 1, maxLength: 64

### Output (application/json)

- `schema` (ref)
  - Reference: `at.happyproto.registry.defs#versionView`

### 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.

## 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
}
```
