# at.atmosynth.collection

> Published by [atmosynth.at](https://lexicon.garden/identity/did:plc:fzjkahpwapmoqxybwdjb6ysf)

✓ This is the authoritative definition for this NSID.

## Description

A collection of synth patches, held in its creator's own repository: a title, a description and the patches it gathers — the creator's own or anybody's — in the order they are listed.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:fzjkahpwapmoqxybwdjb6ysf/at.atmosynth.collection)
- [Documentation](https://lexicon.garden/lexicon/did:plc:fzjkahpwapmoqxybwdjb6ysf/at.atmosynth.collection/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:fzjkahpwapmoqxybwdjb6ysf/at.atmosynth.collection/examples)

## Definitions

### `at.atmosynth.collection`

**Type**: `record`

A titled, ordered list of at.atmosynth.patch records.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `createdAt` | `string` (datetime) | Yes |  |
| `description` | `string` | Yes |  |
| `patches` | `array` | Yes | In the order the collection lists them. A patch is named once. |
| `title` | `string` | Yes |  |

### `at.atmosynth.collection#patchRef`

**Type**: `object`

One patch in the collection, by its address. Not a strong reference: a collection keeps a patch as its creator goes on changing it, and a patch since deleted is simply one the collection can no longer show.

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `uri` | `string` (at-uri) | Yes |  |

## Raw Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A titled, ordered list of at.atmosynth.patch records.",
      "key": "tid",
      "record": {
        "properties": {
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "description": {
            "maxLength": 3000,
            "type": "string"
          },
          "patches": {
            "description": "In the order the collection lists them. A patch is named once.",
            "items": {
              "ref": "#patchRef",
              "type": "ref"
            },
            "maxLength": 500,
            "type": "array"
          },
          "title": {
            "maxLength": 200,
            "minLength": 1,
            "type": "string"
          }
        },
        "required": [
          "title",
          "description",
          "patches",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "patchRef": {
      "description": "One patch in the collection, by its address. Not a strong reference: a collection keeps a patch as its creator goes on changing it, and a patch since deleted is simply one the collection can no longer show.",
      "properties": {
        "uri": {
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri"
      ],
      "type": "object"
    }
  },
  "description": "A collection of synth patches, held in its creator's own repository: a title, a description and the patches it gathers — the creator's own or anybody's — in the order they are listed.",
  "id": "at.atmosynth.collection",
  "lexicon": 1
}
```
