# sh.diffuse.output.collaboration

> Published by [toko.spaces-alpha.bsky.network](https://lexicon.garden/identity/did:plc:3blaxu6ttk4nllr5rt4wmfmp)

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:3blaxu6ttk4nllr5rt4wmfmp/sh.diffuse.output.collaboration)
- [Documentation](https://lexicon.garden/lexicon/did:plc:3blaxu6ttk4nllr5rt4wmfmp/sh.diffuse.output.collaboration/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:3blaxu6ttk4nllr5rt4wmfmp/sh.diffuse.output.collaboration/examples)

## Definitions

### `sh.diffuse.output.collaboration`

**Type**: `record`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `id` | `string` | Yes |  |
| `subject` | `union` | Yes |  |
| `createdAt` | `string` (datetime) | No |  |
| `updatedAt` | `string` (datetime) | No |  |
| `collaborators` | `array` | Yes |  |

### `sh.diffuse.output.collaboration#playlist`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `kind` | `string` | Yes |  |
| `playlist` | `string` | Yes | The name of the playlist, matches the `playlist` property of a playlist item |

### `sh.diffuse.output.collaboration#collaborator`

**Type**: `object`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `id` | `string` | Yes |  |
| `hint` | `string` | Yes | Hint at where this collaborator resides and/or what the id represents. |

## Raw Schema

```json
{
  "id": "sh.diffuse.output.collaboration",
  "defs": {
    "main": {
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "id",
          "collaborators",
          "subject"
        ],
        "properties": {
          "id": {
            "type": "string"
          },
          "subject": {
            "refs": [
              "#playlist"
            ],
            "type": "union"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          },
          "updatedAt": {
            "type": "string",
            "format": "datetime"
          },
          "collaborators": {
            "type": "array",
            "items": {
              "ref": "#collaborator",
              "type": "ref"
            }
          }
        }
      }
    },
    "playlist": {
      "type": "object",
      "required": [
        "kind",
        "playlist"
      ],
      "properties": {
        "kind": {
          "type": "string",
          "const": "playlist"
        },
        "playlist": {
          "type": "string",
          "description": "The name of the playlist, matches the `playlist` property of a playlist item"
        }
      }
    },
    "collaborator": {
      "type": "object",
      "required": [
        "id",
        "hint"
      ],
      "properties": {
        "id": {
          "type": "string"
        },
        "hint": {
          "type": "string",
          "description": "Hint at where this collaborator resides and/or what the id represents."
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
