# app.thesocialwire.socialDraft.defs

- Kind: defs
- Authority: socialDraft.thesocialwire.app
- Lexicon: 1
- Published by [samclemente.me](https://lexicon.garden/identity/did:plc:qy5pluw2bsuq2x6albsgkvx3), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:qy5pluw2bsuq2x6albsgkvx3/app.thesocialwire.socialDraft.defs)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:qy5pluw2bsuq2x6albsgkvx3/app.thesocialwire.socialDraft.defs/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:qy5pluw2bsuq2x6albsgkvx3/app.thesocialwire.socialDraft.defs/analytics)

## #asset (`app.thesocialwire.socialDraft.defs#asset`)

Type: object

### Properties

- `assetId` (string, required): Canonical lowercase UUID.
  - Constraints: minLength: 36, maxLength: 36
- `byteLength` (integer, required)
  - Constraints: minimum: 1, maximum: 104857600
- `contentType` (string, required)
  - Constraints: minLength: 1, maxLength: 256
- `kind` (string, required)
  - Constraints: minLength: 1, maxLength: 64, knownValues: photo | poster | gif | video | caption
- `name` (string, required)
  - Constraints: minLength: 1, maxLength: 1024
- `sha256` (string, required)
  - Constraints: minLength: 64, maxLength: 64
- `state` (string, required)
  - Constraints: minLength: 1, maxLength: 64, knownValues: reserved | ready

## #assetBinding (`app.thesocialwire.socialDraft.defs#assetBinding`)

Type: object

### Properties

- `asset` (ref, required)
  - Reference: `app.thesocialwire.socialDraft.defs#asset`
- `assetId` (string, required): Canonical lowercase UUID.
  - Constraints: minLength: 36, maxLength: 36
- `ref` (string, required)
  - Constraints: minLength: 0, maxLength: 512
- `role` (string, required)
  - Constraints: minLength: 1, maxLength: 64, knownValues: original | prepared | video | poster | caption | gif

## #manifest (`app.thesocialwire.socialDraft.defs#manifest`)

Type: object

### Properties

- `attachments` (array, required)
  - Constraints: maxLength: 800
  - `items` (ref)
    - Reference: `app.thesocialwire.socialDraft.defs#assetBinding`
- `deleted` (boolean, required)
- `draftId` (string, required): AT Protocol TID identifying the draft.
  - Constraints: minLength: 13, maxLength: 13
- `revision` (integer, required)
  - Constraints: minimum: 0

## #manifestRef (`app.thesocialwire.socialDraft.defs#manifestRef`)

Type: object

### Properties

- `assetId` (string, required): Canonical lowercase UUID.
  - Constraints: minLength: 36, maxLength: 36
- `ref` (string, required)
  - Constraints: minLength: 0, maxLength: 512
- `role` (string, required)
  - Constraints: minLength: 1, maxLength: 64, knownValues: original | prepared | video | poster | caption | gif

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "asset": {
      "properties": {
        "assetId": {
          "description": "Canonical lowercase UUID.",
          "maxLength": 36,
          "minLength": 36,
          "type": "string"
        },
        "byteLength": {
          "maximum": 104857600,
          "minimum": 1,
          "type": "integer"
        },
        "contentType": {
          "maxLength": 256,
          "minLength": 1,
          "type": "string"
        },
        "kind": {
          "knownValues": [
            "photo",
            "poster",
            "gif",
            "video",
            "caption"
          ],
          "maxLength": 64,
          "minLength": 1,
          "type": "string"
        },
        "name": {
          "maxLength": 1024,
          "minLength": 1,
          "type": "string"
        },
        "sha256": {
          "maxLength": 64,
          "minLength": 64,
          "type": "string"
        },
        "state": {
          "knownValues": [
            "reserved",
            "ready"
          ],
          "maxLength": 64,
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "assetId",
        "name",
        "contentType",
        "byteLength",
        "sha256",
        "kind",
        "state"
      ],
      "type": "object"
    },
    "assetBinding": {
      "properties": {
        "asset": {
          "ref": "app.thesocialwire.socialDraft.defs#asset",
          "type": "ref"
        },
        "assetId": {
          "description": "Canonical lowercase UUID.",
          "maxLength": 36,
          "minLength": 36,
          "type": "string"
        },
        "ref": {
          "maxLength": 512,
          "minLength": 0,
          "type": "string"
        },
        "role": {
          "knownValues": [
            "original",
            "prepared",
            "video",
            "poster",
            "caption",
            "gif"
          ],
          "maxLength": 64,
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "assetId",
        "role",
        "ref",
        "asset"
      ],
      "type": "object"
    },
    "manifest": {
      "properties": {
        "attachments": {
          "items": {
            "ref": "app.thesocialwire.socialDraft.defs#assetBinding",
            "type": "ref"
          },
          "maxLength": 800,
          "type": "array"
        },
        "deleted": {
          "type": "boolean"
        },
        "draftId": {
          "description": "AT Protocol TID identifying the draft.",
          "maxLength": 13,
          "minLength": 13,
          "type": "string"
        },
        "revision": {
          "minimum": 0,
          "type": "integer"
        }
      },
      "required": [
        "draftId",
        "revision",
        "deleted",
        "attachments"
      ],
      "type": "object"
    },
    "manifestRef": {
      "properties": {
        "assetId": {
          "description": "Canonical lowercase UUID.",
          "maxLength": 36,
          "minLength": 36,
          "type": "string"
        },
        "ref": {
          "maxLength": 512,
          "minLength": 0,
          "type": "string"
        },
        "role": {
          "knownValues": [
            "original",
            "prepared",
            "video",
            "poster",
            "caption",
            "gif"
          ],
          "maxLength": 64,
          "minLength": 1,
          "type": "string"
        }
      },
      "required": [
        "assetId",
        "role",
        "ref"
      ],
      "type": "object"
    }
  },
  "id": "app.thesocialwire.socialDraft.defs",
  "lexicon": 1
}
```
