# org.cairnsproto.draft.export

> Files rendered from a snapshot for the project's official repo. Whether they were merged is derived from the repo, not stored here.

- 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.export)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:np7ezqujtsry4bkogisaabul/org.cairnsproto.draft.export/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:np7ezqujtsry4bkogisaabul/org.cairnsproto.draft.export/analytics)

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

Type: record · key tid

### Properties

- `bundle` (string · uri): Where the snapshot bundle went when it was too large to commit.
- `createdAt` (string · datetime, required)
- `files` (array, required)
  - Constraints: minLength: 1, maxLength: 10000
  - `items` (ref)
    - Reference: `#file`
- `pr` (string · uri): The pull request, when the client opened one.
- `project` (ref, required)
  - Reference: `com.atproto.repo.strongRef`
- `snapshot` (ref, required)
  - Reference: `com.atproto.repo.strongRef`
- `target` (ref, required)
  - Reference: `#target`

## #file (`org.cairnsproto.draft.export#file`)

Type: object

### Properties

- `path` (string, required)
  - Constraints: maxLength: 4096
- `sha256` (ref, required)
  - Reference: `org.cairnsproto.draft.defs#hash`

## #target (`org.cairnsproto.draft.export#target`)

Type: object

### Properties

- `branch` (string, required)
  - Constraints: maxLength: 256
- `path` (string, required)
  - Constraints: maxLength: 4096
- `repo` (string, required): Git URL.
  - Constraints: maxLength: 2048

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "file": {
      "properties": {
        "path": {
          "maxLength": 4096,
          "type": "string"
        },
        "sha256": {
          "ref": "org.cairnsproto.draft.defs#hash",
          "type": "ref"
        }
      },
      "required": [
        "path",
        "sha256"
      ],
      "type": "object"
    },
    "main": {
      "description": "Files rendered from a snapshot for the project's official repo. Whether they were merged is derived from the repo, not stored here.",
      "key": "tid",
      "record": {
        "properties": {
          "bundle": {
            "description": "Where the snapshot bundle went when it was too large to commit.",
            "format": "uri",
            "type": "string"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "files": {
            "items": {
              "ref": "#file",
              "type": "ref"
            },
            "maxLength": 10000,
            "minLength": 1,
            "type": "array"
          },
          "pr": {
            "description": "The pull request, when the client opened one.",
            "format": "uri",
            "type": "string"
          },
          "project": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "snapshot": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "target": {
            "ref": "#target",
            "type": "ref"
          }
        },
        "required": [
          "project",
          "snapshot",
          "target",
          "files",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "target": {
      "properties": {
        "branch": {
          "maxLength": 256,
          "type": "string"
        },
        "path": {
          "maxLength": 4096,
          "type": "string"
        },
        "repo": {
          "description": "Git URL.",
          "maxLength": 2048,
          "type": "string"
        }
      },
      "required": [
        "repo",
        "branch",
        "path"
      ],
      "type": "object"
    }
  },
  "id": "org.cairnsproto.draft.export",
  "lexicon": 1
}
```
