# org.tangled.repo.defs

- Kind: defs
- Authority: repo.tangled.org
- Lexicon: 1
- Published by [tangled.org](https://lexicon.garden/identity/did:plc:wshs7t2adsemcrrd4snkeqli), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.repo.defs)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.repo.defs/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:wshs7t2adsemcrrd4snkeqli/org.tangled.repo.defs/analytics)

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

Type: object

### Properties

- `name` (string, required)
- `size` (integer, required): Total size of files in this language, in bytes.

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

Type: object

### Properties

- `createdAt` (string · datetime, required)
- `description` (string)
- `did` (string · did, required)
- `forkCount` (integer)
- `isStarred` (boolean)
- `openIssueCount` (integer)
- `openPullCount` (integer)
- `owner` (ref, required)
  - Reference: `org.tangled.actor.defs#profileViewBasic`
- `primaryLanguage` (string): Largest language on the default branch, by bytes.
- `slug` (string, required)
- `starCount` (integer)
- `viewer` (ref)
  - Reference: `#viewerState`

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

Type: object

### Properties

- `uri` (string · uri, required): git-clone uri of the repo

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

Type: object

### Properties

- `did` (string · did, required): DID of the repo identity

## #viewerState (`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.

### Properties

- `fork` (string · at-uri)
- `star` (string · at-uri)

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