# dev.knotless.searchOwners

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

✓ This is the authoritative definition for this NSID.

## Description

Accounts owning public repositories an appview has indexed, found by handle.

## Links

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

## Definitions

### `dev.knotless.searchOwners`

**Type**: `query`

Accounts owning public repositories an appview has indexed, whose handle holds the query, ignoring case: those it starts with first, then by their newest repository. No authentication; responses are not personalized.

#### Parameters

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `limit` | `integer` | No |  |
| `q` | `string` | Yes | Text the handle holds. |

#### Output

**Encoding**: `application/json`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `owners` | `array` | Yes |  |

### `dev.knotless.searchOwners#ownerView`

**Type**: `object`

An account, with how many public repositories it owns.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `owner` | `ref` → `dev.knotless.defs#actorView` | Yes |  |
| `repoCount` | `integer` | Yes | How many public repositories the account owns, as the appview has indexed them. |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Accounts owning public repositories an appview has indexed, whose handle holds the query, ignoring case: those it starts with first, then by their newest repository. No authentication; responses are not personalized.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "owners": {
              "items": {
                "ref": "#ownerView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "owners"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "limit": {
            "default": 10,
            "maximum": 50,
            "minimum": 1,
            "type": "integer"
          },
          "q": {
            "description": "Text the handle holds.",
            "maxLength": 100,
            "type": "string"
          }
        },
        "required": [
          "q"
        ],
        "type": "params"
      },
      "type": "query"
    },
    "ownerView": {
      "description": "An account, with how many public repositories it owns.",
      "properties": {
        "owner": {
          "ref": "dev.knotless.defs#actorView",
          "type": "ref"
        },
        "repoCount": {
          "description": "How many public repositories the account owns, as the appview has indexed them.",
          "minimum": 1,
          "type": "integer"
        }
      },
      "required": [
        "owner",
        "repoCount"
      ],
      "type": "object"
    }
  },
  "description": "Accounts owning public repositories an appview has indexed, found by handle.",
  "id": "dev.knotless.searchOwners",
  "lexicon": 1
}
```
