# org.tangled.repo.defs

> Published by [tangled.org](https://lexicon.garden/identity/did:plc:wshs7t2adsemcrrd4snkeqli)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.repo.defs)
- [Documentation](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.repo.defs/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.repo.defs/examples)

## Definitions

### `org.tangled.repo.defs#language`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `name` | `string` | Yes |  |
| `size` | `integer` | Yes | Total size of files in this language, in bytes. |

### `org.tangled.repo.defs#repoViewBasic`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `createdAt` | `string` (datetime) | Yes |  |
| `description` | `string` | No |  |
| `did` | `string` (did) | Yes |  |
| `forkCount` | `integer` | No |  |
| `isStarred` | `boolean` | No |  |
| `openIssueCount` | `integer` | No |  |
| `openPullCount` | `integer` | No |  |
| `owner` | `ref` → `org.tangled.actor.defs#profileViewBasic` | Yes |  |
| `primaryLanguage` | `string` | No | Largest language on the default branch, by bytes. |
| `slug` | `string` | Yes |  |
| `starCount` | `integer` | No |  |
| `viewer` | `ref` → `#viewerState` | No |  |

### `org.tangled.repo.defs#sourceExternal`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `uri` | `string` (uri) | Yes | git-clone uri of the repo |

### `org.tangled.repo.defs#sourceTangled`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `did` | `string` (did) | Yes | DID of the repo identity |

### `org.tangled.repo.defs#viewerState`

**Type**: `object`

Metadata about the requesting account's relationship with the subject content. Only has meaningful content for authed requests.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `fork` | `string` (at-uri) | No |  |
| `star` | `string` (at-uri) | No |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "language": {
      "properties": {
        "name": {
          "type": "string"
        },
        "size": {
          "description": "Total size of files in this language, in bytes.",
          "type": "integer"
        }
      },
      "required": [
        "name",
        "size"
      ],
      "type": "object"
    },
    "repoViewBasic": {
      "properties": {
        "createdAt": {
          "format": "datetime",
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "did": {
          "format": "did",
          "type": "string"
        },
        "forkCount": {
          "type": "integer"
        },
        "isStarred": {
          "type": "boolean"
        },
        "openIssueCount": {
          "type": "integer"
        },
        "openPullCount": {
          "type": "integer"
        },
        "owner": {
          "ref": "org.tangled.actor.defs#profileViewBasic",
          "type": "ref"
        },
        "primaryLanguage": {
          "description": "Largest language on the default branch, by bytes.",
          "type": "string"
        },
        "slug": {
          "type": "string"
        },
        "starCount": {
          "type": "integer"
        },
        "viewer": {
          "ref": "#viewerState",
          "type": "ref"
        }
      },
      "required": [
        "did",
        "owner",
        "slug",
        "createdAt"
      ],
      "type": "object"
    },
    "sourceExternal": {
      "properties": {
        "uri": {
          "description": "git-clone uri of the repo",
          "format": "uri",
          "type": "string"
        }
      },
      "required": [
        "uri"
      ],
      "type": "object"
    },
    "sourceTangled": {
      "properties": {
        "did": {
          "description": "DID of the repo identity",
          "format": "did",
          "type": "string"
        }
      },
      "required": [
        "did"
      ],
      "type": "object"
    },
    "viewerState": {
      "description": "Metadata about the requesting account's relationship with the subject content. Only has meaningful content for authed requests.",
      "properties": {
        "fork": {
          "format": "at-uri",
          "type": "string"
        },
        "star": {
          "format": "at-uri",
          "type": "string"
        }
      },
      "type": "object"
    }
  },
  "id": "org.tangled.repo.defs",
  "lexicon": 1
}
```
