# dev.knotless.listReleases

> Published by [lexicons.knotless.dev](https://lexicon.garden/identity/did:plc:yqsg7znbbhfmj3a2nrpnaerk)

✓ This is the authoritative definition for this NSID.

## Description

The releases a repository publishes.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.listReleases)
- [Documentation](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.listReleases/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:yqsg7znbbhfmj3a2nrpnaerk/dev.knotless.listReleases/examples)

## Definitions

### `dev.knotless.listReleases`

**Type**: `query`

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.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cursor` | `string` | No | How many the pages before held. |
| `limit` | `integer` | No |  |
| `package` | `string` | No | Only this package's releases; every package's if absent. |
| `repo` | `string` (at-uri) | Yes | 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

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cursor` | `string` | No | Absent on the last page. |
| `packages` | `array` | No | Each package the repository publishes, by name, whatever `package` asked for, for a filter to name. Absent when it publishes none. |
| `releases` | `array` | Yes |  |

#### Errors

- **NotFound**: No such repository.

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