# sh.diffuse.output.facet

> 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.facet)
- [Documentation](https://lexicon.garden/lexicon/did:plc:3blaxu6ttk4nllr5rt4wmfmp/sh.diffuse.output.facet/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:3blaxu6ttk4nllr5rt4wmfmp/sh.diffuse.output.facet/examples)

## Definitions

### `sh.diffuse.output.facet`

**Type**: `record`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `id` | `string` | Yes | A unique identifier |
| `cid` | `string` | No | A DASL CID representing the UTF8 encoded HTML (raw 0x55 codec) |
| `uri` | `string` | No | An optional URI that points at the facet; can be used to update this artifact |
| `html` | `string` | No | The UTF8 HTML string that makes up the facet |
| `kind` | `string` | No | A facet is by default interactive, but headless 'prelude' facets may also be created, these run before any main interactive facet is loaded. |
| `name` | `string` | Yes |  |
| `tags` | `array` | No |  |
| `enabled` | `boolean` | No | Whether the facet is enabled or not |
| `createdAt` | `string` (datetime) | No |  |
| `favourite` | `boolean` | No | Whether the facet is favourited (shown at the top) or not. Some facets may be more important to the user than others. |
| `updatedAt` | `string` (datetime) | No |  |
| `description` | `string` | No |  |

## Raw Schema

```json
{
  "id": "sh.diffuse.output.facet",
  "defs": {
    "main": {
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "id",
          "name"
        ],
        "properties": {
          "id": {
            "type": "string",
            "description": "A unique identifier"
          },
          "cid": {
            "type": "string",
            "description": "A DASL CID representing the UTF8 encoded HTML (raw 0x55 codec)"
          },
          "uri": {
            "type": "string",
            "description": "An optional URI that points at the facet; can be used to update this artifact"
          },
          "html": {
            "type": "string",
            "description": "The UTF8 HTML string that makes up the facet"
          },
          "kind": {
            "enum": [
              "interactive",
              "prelude"
            ],
            "type": "string",
            "default": "interactive",
            "description": "A facet is by default interactive, but headless 'prelude' facets may also be created, these run before any main interactive facet is loaded."
          },
          "name": {
            "type": "string"
          },
          "tags": {
            "type": "array",
            "items": {
              "type": "string"
            }
          },
          "enabled": {
            "type": "boolean",
            "default": true,
            "description": "Whether the facet is enabled or not"
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          },
          "favourite": {
            "type": "boolean",
            "default": false,
            "description": "Whether the facet is favourited (shown at the top) or not. Some facets may be more important to the user than others."
          },
          "updatedAt": {
            "type": "string",
            "format": "datetime"
          },
          "description": {
            "type": "string"
          }
        }
      }
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
