# computer.localnetwork.epk.draft

> One manager's unpublished changes to one press kit, in their repo in the project's backstage (computer.localnetwork.space.backstage). The record key is the press kit's: an existing one's, or for a new press kit, the key it will be published under, so a manager has at most one draft per press kit. A draft the Local Network root account writes on someone's behalf has a key of its own, since the root can hold several managers' drafts of one press kit; its base names the press kit, or for a new one, its key is the one the press kit will get. Photos it adds are blobs in the writer's repo until publishing copies them to the root's.

- Kind: record
- Record key: tid
- Authority: epk.localnetwork.computer
- Lexicon: 1
- Published by [localnetwork.computer](https://lexicon.garden/identity/did:plc:d42l64gsczg6qh2vo243xv5l), not the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:d42l64gsczg6qh2vo243xv5l/computer.localnetwork.epk.draft)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:d42l64gsczg6qh2vo243xv5l/computer.localnetwork.epk.draft/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:d42l64gsczg6qh2vo243xv5l/computer.localnetwork.epk.draft/analytics)

## Record (`computer.localnetwork.epk.draft`)

Type: record · key tid

### Properties

- `base` (ref): The published press kit (a computer.localnetwork.epk record) at the version this draft started from. Absent for a press kit that isn't published yet.
  - Reference: `com.atproto.repo.strongRef`
- `changes` (ref, required): The fields this draft changes, with their new values. A field left out is unchanged; an empty string, list or object clears it.
  - Reference: `#fields`
- `createdAt` (string · datetime, required)
- `onBehalfOf` (string · did): Set when the Local Network root account wrote this for a manager whose PDS can't write to spaces.
- `previous` (ref): What each changed field held in the published press kit when the draft changed it; a changed field missing here was empty. Publishing compares these with the current values to find fields someone else published since. Absent for a press kit that isn't published yet.
  - Reference: `#fields`
- `updatedAt` (string · datetime, required)

## #contentFields (`computer.localnetwork.epk.draft#contentFields`)

Type: object

Some fields of a press kit's computer.localnetwork.epk.content record.

### Properties

- `bio` (string)
  - Constraints: maxLength: 50000, maxGraphemes: 5000
- `contact` (ref)
  - Reference: `computer.localnetwork.epk.defs#contact`
- `mixes` (array)
  - Constraints: maxLength: 12
  - `items` (ref)
    - Reference: `computer.localnetwork.defs#mix`
- `photos` (array)
  - Constraints: maxLength: 20
  - `items` (ref)
    - Reference: `computer.localnetwork.epk.defs#photo`
- `quotes` (array)
  - Constraints: maxLength: 10
  - `items` (ref)
    - Reference: `computer.localnetwork.epk.defs#quote`
- `techRider` (string)
  - Constraints: maxLength: 20000, maxGraphemes: 2000

## #fields (`computer.localnetwork.epk.draft#fields`)

Type: object

Some fields of a press kit: the public record's at the top level, the private part's under content.

### Properties

- `access` (ref)
  - Reference: `computer.localnetwork.epk.defs#access`
- `bio` (string)
  - Constraints: maxLength: 10000, maxGraphemes: 1000
- `content` (ref)
  - Reference: `#contentFields`
- `headline` (string)
  - Constraints: maxLength: 3000, maxGraphemes: 300
- `mixes` (array)
  - Constraints: maxLength: 12
  - `items` (ref)
    - Reference: `computer.localnetwork.defs#mix`
- `photos` (array)
  - Constraints: maxLength: 10
  - `items` (ref)
    - Reference: `computer.localnetwork.epk.defs#photo`
- `title` (string)
  - Constraints: minLength: 1, maxLength: 1000, maxGraphemes: 100

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "contentFields": {
      "description": "Some fields of a press kit's computer.localnetwork.epk.content record.",
      "properties": {
        "bio": {
          "maxGraphemes": 5000,
          "maxLength": 50000,
          "type": "string"
        },
        "contact": {
          "ref": "computer.localnetwork.epk.defs#contact",
          "type": "ref"
        },
        "mixes": {
          "items": {
            "ref": "computer.localnetwork.defs#mix",
            "type": "ref"
          },
          "maxLength": 12,
          "type": "array"
        },
        "photos": {
          "items": {
            "ref": "computer.localnetwork.epk.defs#photo",
            "type": "ref"
          },
          "maxLength": 20,
          "type": "array"
        },
        "quotes": {
          "items": {
            "ref": "computer.localnetwork.epk.defs#quote",
            "type": "ref"
          },
          "maxLength": 10,
          "type": "array"
        },
        "techRider": {
          "maxGraphemes": 2000,
          "maxLength": 20000,
          "type": "string"
        }
      },
      "type": "object"
    },
    "fields": {
      "description": "Some fields of a press kit: the public record's at the top level, the private part's under content.",
      "properties": {
        "access": {
          "ref": "computer.localnetwork.epk.defs#access",
          "type": "ref"
        },
        "bio": {
          "maxGraphemes": 1000,
          "maxLength": 10000,
          "type": "string"
        },
        "content": {
          "ref": "#contentFields",
          "type": "ref"
        },
        "headline": {
          "maxGraphemes": 300,
          "maxLength": 3000,
          "type": "string"
        },
        "mixes": {
          "items": {
            "ref": "computer.localnetwork.defs#mix",
            "type": "ref"
          },
          "maxLength": 12,
          "type": "array"
        },
        "photos": {
          "items": {
            "ref": "computer.localnetwork.epk.defs#photo",
            "type": "ref"
          },
          "maxLength": 10,
          "type": "array"
        },
        "title": {
          "maxGraphemes": 100,
          "maxLength": 1000,
          "minLength": 1,
          "type": "string"
        }
      },
      "type": "object"
    },
    "main": {
      "description": "One manager's unpublished changes to one press kit, in their repo in the project's backstage (computer.localnetwork.space.backstage). The record key is the press kit's: an existing one's, or for a new press kit, the key it will be published under, so a manager has at most one draft per press kit. A draft the Local Network root account writes on someone's behalf has a key of its own, since the root can hold several managers' drafts of one press kit; its base names the press kit, or for a new one, its key is the one the press kit will get. Photos it adds are blobs in the writer's repo until publishing copies them to the root's.",
      "key": "tid",
      "record": {
        "properties": {
          "base": {
            "description": "The published press kit (a computer.localnetwork.epk record) at the version this draft started from. Absent for a press kit that isn't published yet.",
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "changes": {
            "description": "The fields this draft changes, with their new values. A field left out is unchanged; an empty string, list or object clears it.",
            "ref": "#fields",
            "type": "ref"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "onBehalfOf": {
            "description": "Set when the Local Network root account wrote this for a manager whose PDS can't write to spaces.",
            "format": "did",
            "type": "string"
          },
          "previous": {
            "description": "What each changed field held in the published press kit when the draft changed it; a changed field missing here was empty. Publishing compares these with the current values to find fields someone else published since. Absent for a press kit that isn't published yet.",
            "ref": "#fields",
            "type": "ref"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "changes",
          "createdAt",
          "updatedAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "computer.localnetwork.epk.draft",
  "lexicon": 1
}
```
