# dev.knotless.getRepoSettings

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

✓ This is the authoritative definition for this NSID.

## Description

What a repository's owner sets: its description, links and default branch, protected branches, labels, collaborators and triagers, an offer to move it, and what it takes up.

## Links

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

## Definitions

### `dev.knotless.getRepoSettings`

**Type**: `query`

A repository's settings, read from its dev.knotless.repo record as its PDS has it now, for the pages' settings to show and change. All of it is public, as the record is.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `repo` | `string` (at-uri) | Yes | The repository's dev.knotless.repo record, as dev.knotless.getRepo takes it. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `collaborators` | `array` | Yes | The accounts that may push to it. |
| `defaultBranch` | `string` | No | The branch its record names for HEAD, without refs/heads/. |
| `delegated` | `string` (did) | No | The gateway its owner delegated writes to from this appview's pages (dev.knotless.delegateWrites), which sharing it for writing names as its gateway; absent until they have. |
| `description` | `string` | No | What the repository says it is. |
| `gateway` | `string` (did) | No | The gateway the owner delegated writes to, through which collaborators push: absent until the owner delegates. |
| `indexed` | `boolean` | No | Deprecated, and no longer set: knotless.dev indexes every private repository its members read there. Was, for a private repository, whether its owner let this appview keep an index of it. |
| `labels` | `array` | Yes | The labels its pulls and issues may carry. |
| `links` | `array` | No | The links its pages show, in order, as its record names them. |
| `readers` | `array` | No | For a private repository, asked by its owner, the members who read it but do not push to it, its runners among them; absent for a public one, which anyone reads, and empty to anyone else. |
| `rules` | `array` | Yes | Its protected branches. |
| `storage` | `ref` → `#storageView` | No | What it takes up on its owner's PDS; absent if that could not be read. |
| `transfer` | `ref` → `dev.knotless.defs#repoViewBasic` | No | Where the owner has offered to move it, if they have: the account, and the name it would have there. |
| `triagers` | `array` | Yes | The accounts whose labels of some scopes count. |
| `uri` | `string` (at-uri) | Yes | Its dev.knotless.repo record, under the name it has now. |

#### Errors

- **NotFound**: No such repository.

### `dev.knotless.getRepoSettings#storageView`

**Type**: `object`

A repository's packs, which hold all of its history, as `knotless storage` counts them.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `blobBytes` | `integer` | Yes | Of those, the bytes in blobs rather than inline in records. |
| `bytes` | `integer` | Yes | Their bytes, as git packs them. |
| `objects` | `integer` | Yes | The objects in them, pack by pack: one in two packs counts twice, until compaction folds them. |
| `packs` | `integer` | Yes |  |

### `dev.knotless.getRepoSettings#triagerView`

**Type**: `object`

An account whose labels of some scopes count on a repository.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `actor` | `ref` → `dev.knotless.defs#actorView` | Yes |  |
| `scopes` | `array` | Yes | The scopes of the labels it may put on. |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A repository's settings, read from its dev.knotless.repo record as its PDS has it now, for the pages' settings to show and change. All of it is public, as the record is.",
      "errors": [
        {
          "description": "No such repository.",
          "name": "NotFound"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "collaborators": {
              "description": "The accounts that may push to it.",
              "items": {
                "ref": "dev.knotless.defs#actorView",
                "type": "ref"
              },
              "type": "array"
            },
            "defaultBranch": {
              "description": "The branch its record names for HEAD, without refs/heads/.",
              "type": "string"
            },
            "delegated": {
              "description": "The gateway its owner delegated writes to from this appview's pages (dev.knotless.delegateWrites), which sharing it for writing names as its gateway; absent until they have.",
              "format": "did",
              "type": "string"
            },
            "description": {
              "description": "What the repository says it is.",
              "type": "string"
            },
            "gateway": {
              "description": "The gateway the owner delegated writes to, through which collaborators push: absent until the owner delegates.",
              "format": "did",
              "type": "string"
            },
            "indexed": {
              "description": "Deprecated, and no longer set: knotless.dev indexes every private repository its members read there. Was, for a private repository, whether its owner let this appview keep an index of it.",
              "type": "boolean"
            },
            "labels": {
              "description": "The labels its pulls and issues may carry.",
              "items": {
                "ref": "dev.knotless.repo#label",
                "type": "ref"
              },
              "type": "array"
            },
            "links": {
              "description": "The links its pages show, in order, as its record names them.",
              "items": {
                "ref": "dev.knotless.defs#link",
                "type": "ref"
              },
              "type": "array"
            },
            "readers": {
              "description": "For a private repository, asked by its owner, the members who read it but do not push to it, its runners among them; absent for a public one, which anyone reads, and empty to anyone else.",
              "items": {
                "ref": "dev.knotless.defs#actorView",
                "type": "ref"
              },
              "type": "array"
            },
            "rules": {
              "description": "Its protected branches.",
              "items": {
                "ref": "dev.knotless.repo#rule",
                "type": "ref"
              },
              "type": "array"
            },
            "storage": {
              "description": "What it takes up on its owner's PDS; absent if that could not be read.",
              "ref": "#storageView",
              "type": "ref"
            },
            "transfer": {
              "description": "Where the owner has offered to move it, if they have: the account, and the name it would have there.",
              "ref": "dev.knotless.defs#repoViewBasic",
              "type": "ref"
            },
            "triagers": {
              "description": "The accounts whose labels of some scopes count.",
              "items": {
                "ref": "#triagerView",
                "type": "ref"
              },
              "type": "array"
            },
            "uri": {
              "description": "Its dev.knotless.repo record, under the name it has now.",
              "format": "at-uri",
              "type": "string"
            }
          },
          "required": [
            "uri",
            "rules",
            "labels",
            "collaborators",
            "triagers"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "repo": {
            "description": "The repository's dev.knotless.repo record, as dev.knotless.getRepo takes it.",
            "format": "at-uri",
            "type": "string"
          }
        },
        "required": [
          "repo"
        ],
        "type": "params"
      },
      "type": "query"
    },
    "storageView": {
      "description": "A repository's packs, which hold all of its history, as `knotless storage` counts them.",
      "properties": {
        "blobBytes": {
          "description": "Of those, the bytes in blobs rather than inline in records.",
          "minimum": 0,
          "type": "integer"
        },
        "bytes": {
          "description": "Their bytes, as git packs them.",
          "minimum": 0,
          "type": "integer"
        },
        "objects": {
          "description": "The objects in them, pack by pack: one in two packs counts twice, until compaction folds them.",
          "minimum": 0,
          "type": "integer"
        },
        "packs": {
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "packs",
        "objects",
        "bytes",
        "blobBytes"
      ],
      "type": "object"
    },
    "triagerView": {
      "description": "An account whose labels of some scopes count on a repository.",
      "properties": {
        "actor": {
          "ref": "dev.knotless.defs#actorView",
          "type": "ref"
        },
        "scopes": {
          "description": "The scopes of the labels it may put on.",
          "items": {
            "ref": "dev.knotless.repo#scope",
            "type": "ref"
          },
          "type": "array"
        }
      },
      "required": [
        "actor",
        "scopes"
      ],
      "type": "object"
    }
  },
  "description": "What a repository's owner sets: its description, links and default branch, protected branches, labels, collaborators and triagers, an offer to move it, and what it takes up.",
  "id": "dev.knotless.getRepoSettings",
  "lexicon": 1
}
```
