# am.noz.atgallery.alpha.publicationJob

> Published by [noz.am](https://lexicon.garden/identity/did:plc:lmkzmvv6sdxntwtyxpg7fqqq)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:lmkzmvv6sdxntwtyxpg7fqqq/am.noz.atgallery.alpha.publicationJob)
- [Documentation](https://lexicon.garden/lexicon/did:plc:lmkzmvv6sdxntwtyxpg7fqqq/am.noz.atgallery.alpha.publicationJob/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:lmkzmvv6sdxntwtyxpg7fqqq/am.noz.atgallery.alpha.publicationJob/examples)

## Definitions

### `am.noz.atgallery.alpha.publicationJob`

**Type**: `record`

A resumable private state machine for publishing an immutable album snapshot.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `album` | `string` (at-uri) | Yes | Private Library album being published. |
| `status` | `string` | Yes |  |
| `createdAt` | `string` (datetime) | Yes |  |
| `updatedAt` | `string` (datetime) | Yes |  |
| `completedAt` | `string` (datetime) | No |  |
| `failureCode` | `string` | No |  |
| `formatVersion` | `integer` | Yes |  |
| `publishedAlbum` | `string` (at-uri) | No | Stable public published-album record, when allocated. |
| `intendedSnapshot` | `unknown` | No |  |
| `publishedSnapshot` | `string` (at-uri) | No | Public immutable snapshot record, when allocated. |

## Raw Schema

```json
{
  "id": "am.noz.atgallery.alpha.publicationJob",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "formatVersion",
          "album",
          "status",
          "createdAt",
          "updatedAt"
        ],
        "properties": {
          "album": {
            "type": "string",
            "format": "at-uri",
            "description": "Private Library album being published."
          },
          "status": {
            "type": "string",
            "maxLength": 32,
            "knownValues": [
              "planned",
              "uploading",
              "writing",
              "activating",
              "verifying",
              "complete",
              "failed"
            ]
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          },
          "updatedAt": {
            "type": "string",
            "format": "datetime"
          },
          "completedAt": {
            "type": "string",
            "format": "datetime"
          },
          "failureCode": {
            "type": "string",
            "maxLength": 200
          },
          "formatVersion": {
            "type": "integer",
            "const": 1
          },
          "publishedAlbum": {
            "type": "string",
            "format": "at-uri",
            "description": "Stable public published-album record, when allocated."
          },
          "intendedSnapshot": {
            "type": "unknown"
          },
          "publishedSnapshot": {
            "type": "string",
            "format": "at-uri",
            "description": "Public immutable snapshot record, when allocated."
          }
        }
      },
      "description": "A resumable private state machine for publishing an immutable album snapshot."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
