# at.happyproto.registry.listVersions

> A plugin's versions, most recently indexed first, whatever their lifecycle state.

- 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.listVersions)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:mo7vq4jbioxwafy5zkcc3eux/at.happyproto.registry.listVersions/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:mo7vq4jbioxwafy5zkcc3eux/at.happyproto.registry.listVersions/analytics)

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

Type: query · GET

### Parameters (query string)

- `cursor` (string)
- `did` (string · did, required): The publisher.
- `limit` (integer)
  - Constraints: minimum: 1, maximum: 100, default: 50
- `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)

- `cursor` (string): Absent on the last page.
- `versions` (array, required)
  - `items` (ref)
    - Reference: `at.happyproto.registry.defs#versionView`

### Errors

- `ProjectNotFound`: No project of that name is indexed for that publisher.
- `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": "A plugin's versions, most recently indexed first, whatever their lifecycle state.",
      "errors": [
        {
          "description": "No project of that name is indexed for that publisher.",
          "name": "ProjectNotFound"
        },
        {
          "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": {
          "properties": {
            "cursor": {
              "description": "Absent on the last page.",
              "type": "string"
            },
            "versions": {
              "items": {
                "ref": "at.happyproto.registry.defs#versionView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "versions"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "cursor": {
            "type": "string"
          },
          "did": {
            "description": "The publisher.",
            "format": "did",
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "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"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "at.happyproto.registry.listVersions",
  "lexicon": 1
}
```
