# org.cairnsproto.draft.importResult

> What a project's import check read from its official repo at one commit. Indexers read these only from the project's maintainers. Published values are compared with readings, never counted.

- Kind: record
- Record key: tid
- Authority: draft.cairnsproto.org
- Lexicon: 1
- Published by [cairnsproto.org](https://lexicon.garden/identity/did:plc:np7ezqujtsry4bkogisaabul), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:np7ezqujtsry4bkogisaabul/org.cairnsproto.draft.importResult)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:np7ezqujtsry4bkogisaabul/org.cairnsproto.draft.importResult/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:np7ezqujtsry4bkogisaabul/org.cairnsproto.draft.importResult/analytics)

## Record (`org.cairnsproto.draft.importResult`)

Type: record · key tid

### Properties

- `check` (ref, required): The project's import check at the version that ran.
  - Reference: `com.atproto.repo.strongRef`
- `createdAt` (string · datetime, required)
- `files` (array, required): Every file under the publish path, and CITATION.cff, at the commit.
  - Constraints: maxLength: 10000
  - `items` (ref)
    - Reference: `org.cairnsproto.draft.export#file`
- `project` (ref, required)
  - Reference: `com.atproto.repo.strongRef`
- `source` (ref, required): The source record of the branch-head commit.
  - Reference: `com.atproto.repo.strongRef`
- `values` (blob, required): DAG-CBOR {version: cairns/import/v1, values: [{site, digest}]}: each site key and the digest of its published value.
  - Constraints: maxSize: 50000000, accept: application/vnd.ipld.dag-cbor

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "What a project's import check read from its official repo at one commit. Indexers read these only from the project's maintainers. Published values are compared with readings, never counted.",
      "key": "tid",
      "record": {
        "properties": {
          "check": {
            "description": "The project's import check at the version that ran.",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "files": {
            "description": "Every file under the publish path, and CITATION.cff, at the commit.",
            "items": {
              "ref": "org.cairnsproto.draft.export#file",
              "type": "ref"
            },
            "maxLength": 10000,
            "type": "array"
          },
          "project": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "source": {
            "description": "The source record of the branch-head commit.",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "values": {
            "accept": [
              "application/vnd.ipld.dag-cbor"
            ],
            "description": "DAG-CBOR {version: cairns/import/v1, values: [{site, digest}]}: each site key and the digest of its published value.",
            "maxSize": 50000000,
            "type": "blob"
          }
        },
        "required": [
          "project",
          "source",
          "check",
          "files",
          "values",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "org.cairnsproto.draft.importResult",
  "lexicon": 1
}
```
