# at.happyproto.plugin.profile

> A HappyView plugin package, in its publisher's repo. The record key is the package slug, so the slug is immutable: changing it means a different package.

- Kind: record
- Record key: any
- Authority: plugin.happyproto.at
- Lexicon: 1
- Published by [happyproto.at](https://lexicon.garden/identity/did:plc:mo7vq4jbioxwafy5zkcc3eux), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:mo7vq4jbioxwafy5zkcc3eux/at.happyproto.plugin.profile)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:mo7vq4jbioxwafy5zkcc3eux/at.happyproto.plugin.profile/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:mo7vq4jbioxwafy5zkcc3eux/at.happyproto.plugin.profile/analytics)

## Record (`at.happyproto.plugin.profile`)

Type: record · key any

### Properties

- `authors` (array, required)
  - Constraints: minLength: 1
  - `items` (ref)
    - Reference: `#author`
- `description` (string): One line, 140 graphemes or fewer recommended.
  - Constraints: maxLength: 3000, maxGraphemes: 300
- `keywords` (array): Five or fewer recommended.
  - Constraints: maxLength: 20
  - `items` (string)
    - Constraints: maxLength: 320, maxGraphemes: 32
- `lastUpdated` (string · datetime)
- `license` (string, required): An SPDX expression, or the literal 'proprietary'.
  - Constraints: maxLength: 256
- `name` (string): Display name. The slug is used when absent.
  - Constraints: maxLength: 640, maxGraphemes: 64
- `sections` (ref)
  - Reference: `#sections`
- `security` (array, required): Where to report a vulnerability. At least one, because a plugin runs as native code in an operator's process.
  - Constraints: minLength: 1
  - `items` (ref)
    - Reference: `#contact`
- `type` (string, required): Names the ecosystem. A client that does not understand the value refuses the package rather than guessing.
  - Constraints: const: "happyview-plugin"

## #author (`at.happyproto.plugin.profile#author`)

Type: object

### Properties

- `email` (string)
  - Constraints: maxLength: 320
- `name` (string, required)
  - Constraints: maxLength: 640, maxGraphemes: 64
- `url` (string · uri)

## #contact (`at.happyproto.plugin.profile#contact`)

Type: object

A security contact. Either field satisfies it, but an entry with neither says nothing.

### Properties

- `email` (string)
  - Constraints: maxLength: 320
- `url` (string · uri)

## #sections (`at.happyproto.plugin.profile#sections`)

Type: object

Long-form CommonMark, rendered as untrusted input with raw HTML stripped.

### Properties

- `changelog` (string)
  - Constraints: maxLength: 20000, maxGraphemes: 2000
- `description` (string)
  - Constraints: maxLength: 20000, maxGraphemes: 2000
- `installation` (string)
  - Constraints: maxLength: 20000, maxGraphemes: 2000
- `security` (string)
  - Constraints: maxLength: 20000, maxGraphemes: 2000

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "author": {
      "properties": {
        "email": {
          "maxLength": 320,
          "type": "string"
        },
        "name": {
          "maxGraphemes": 64,
          "maxLength": 640,
          "type": "string"
        },
        "url": {
          "format": "uri",
          "type": "string"
        }
      },
      "required": [
        "name"
      ],
      "type": "object"
    },
    "contact": {
      "description": "A security contact. Either field satisfies it, but an entry with neither says nothing.",
      "properties": {
        "email": {
          "maxLength": 320,
          "type": "string"
        },
        "url": {
          "format": "uri",
          "type": "string"
        }
      },
      "type": "object"
    },
    "main": {
      "description": "A HappyView plugin package, in its publisher's repo. The record key is the package slug, so the slug is immutable: changing it means a different package.",
      "key": "any",
      "record": {
        "properties": {
          "authors": {
            "items": {
              "ref": "#author",
              "type": "ref"
            },
            "minLength": 1,
            "type": "array"
          },
          "description": {
            "description": "One line, 140 graphemes or fewer recommended.",
            "maxGraphemes": 300,
            "maxLength": 3000,
            "type": "string"
          },
          "keywords": {
            "description": "Five or fewer recommended.",
            "items": {
              "maxGraphemes": 32,
              "maxLength": 320,
              "type": "string"
            },
            "maxLength": 20,
            "type": "array"
          },
          "lastUpdated": {
            "format": "datetime",
            "type": "string"
          },
          "license": {
            "description": "An SPDX expression, or the literal 'proprietary'.",
            "maxLength": 256,
            "type": "string"
          },
          "name": {
            "description": "Display name. The slug is used when absent.",
            "maxGraphemes": 64,
            "maxLength": 640,
            "type": "string"
          },
          "sections": {
            "ref": "#sections",
            "type": "ref"
          },
          "security": {
            "description": "Where to report a vulnerability. At least one, because a plugin runs as native code in an operator's process.",
            "items": {
              "ref": "#contact",
              "type": "ref"
            },
            "minLength": 1,
            "type": "array"
          },
          "type": {
            "const": "happyview-plugin",
            "description": "Names the ecosystem. A client that does not understand the value refuses the package rather than guessing.",
            "type": "string"
          }
        },
        "required": [
          "type",
          "license",
          "authors",
          "security"
        ],
        "type": "object"
      },
      "type": "record"
    },
    "sections": {
      "description": "Long-form CommonMark, rendered as untrusted input with raw HTML stripped.",
      "properties": {
        "changelog": {
          "maxGraphemes": 2000,
          "maxLength": 20000,
          "type": "string"
        },
        "description": {
          "maxGraphemes": 2000,
          "maxLength": 20000,
          "type": "string"
        },
        "installation": {
          "maxGraphemes": 2000,
          "maxLength": 20000,
          "type": "string"
        },
        "security": {
          "maxGraphemes": 2000,
          "maxLength": 20000,
          "type": "string"
        }
      },
      "type": "object"
    }
  },
  "id": "at.happyproto.plugin.profile",
  "lexicon": 1
}
```
