# dev.knotless.listReleases

> A repository's releases, of every package or of one, newest first, a page at a time: follow `cursor` until it is absent. Each marks whether it is its package's latest, and whether it is a container image. None for a private repository, which cannot publish, or from an appview that keeps no index. No authentication needed.

- Kind: query
- Authority: knotless.dev
- Lexicon: 1
- Published by [lexicons.knotless.dev](https://lexicon.garden/identity/did:plc:yqsg7znbbhfmj3a2nrpnaerk), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.listReleases)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.listReleases/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.listReleases/analytics)

## Query (`dev.knotless.listReleases`)

Type: query · GET

### Parameters (query string)

- `cursor` (string): How many the pages before held.
  - Constraints: maxLength: 32
- `limit` (integer)
  - Constraints: minimum: 1, maximum: 100, default: 30
- `package` (string): Only this package's releases; every package's if absent.
  - Constraints: maxLength: 214
- `repo` (string · at-uri, required): The repository's dev.knotless.repo record. Its authority may be a handle; a name the repository had before, or an owner it moved from with its agreement, finds it under the name it has now.

### Output (application/json)

- `cursor` (string): Absent on the last page.
- `packages` (array): Each package the repository publishes, by name, whatever `package` asked for, for a filter to name. Absent when it publishes none.
  - `items` (ref)
    - Reference: `dev.knotless.defs#packageView`
- `releases` (array, required)
  - `items` (ref)
    - Reference: `dev.knotless.defs#releaseView`

### Errors

- `NotFound`: No such repository.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A repository's releases, of every package or of one, newest first, a page at a time: follow `cursor` until it is absent. Each marks whether it is its package's latest, and whether it is a container image. None for a private repository, which cannot publish, or from an appview that keeps no index. No authentication needed.",
      "errors": [
        {
          "description": "No such repository.",
          "name": "NotFound"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cursor": {
              "description": "Absent on the last page.",
              "type": "string"
            },
            "packages": {
              "description": "Each package the repository publishes, by name, whatever `package` asked for, for a filter to name. Absent when it publishes none.",
              "items": {
                "ref": "dev.knotless.defs#packageView",
                "type": "ref"
              },
              "type": "array"
            },
            "releases": {
              "items": {
                "ref": "dev.knotless.defs#releaseView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "releases"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "cursor": {
            "description": "How many the pages before held.",
            "maxLength": 32,
            "type": "string"
          },
          "limit": {
            "default": 30,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "package": {
            "description": "Only this package's releases; every package's if absent.",
            "maxLength": 214,
            "type": "string"
          },
          "repo": {
            "description": "The repository's dev.knotless.repo record. Its authority may be a handle; a name the repository had before, or an owner it moved from with its agreement, finds it under the name it has now.",
            "format": "at-uri",
            "type": "string"
          }
        },
        "required": [
          "repo"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "description": "The releases a repository publishes.",
  "id": "dev.knotless.listReleases",
  "lexicon": 1
}
```
