# space.ship.profile

> A Ship's public profile. A Ship keeps one, under the record key self.

- Kind: record
- Record key: literal:self
- Authority: ship.space
- Lexicon: 1
- Published by [lexicons.ship.space](https://lexicon.garden/identity/did:plc:776zmfmkvplguzqsyzd4derl), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:776zmfmkvplguzqsyzd4derl/space.ship.profile)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:776zmfmkvplguzqsyzd4derl/space.ship.profile/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:776zmfmkvplguzqsyzd4derl/space.ship.profile/analytics)

## Record (`space.ship.profile`)

Type: record · key literal:self

### Properties

- `about` (string)
  - Constraints: maxLength: 20480, maxGraphemes: 2048
- `avatar` (blob): A profile picture is a PNG, JPEG or WebP of at most 1 MB.
  - Constraints: maxSize: 1000000, accept: image/png, image/jpeg, image/webp
- `contactPolicy` (string, required): What visitors may do: send a message request, or nothing. Known values are requests and closed; a Ship reads any other value as closed.
  - Constraints: maxLength: 64, knownValues: requests | closed
- `displayName` (string, required)
  - Constraints: maxLength: 640, minGraphemes: 1, maxGraphemes: 80

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A Ship's public profile. A Ship keeps one, under the record key self.",
      "key": "literal:self",
      "record": {
        "properties": {
          "about": {
            "maxGraphemes": 2048,
            "maxLength": 20480,
            "type": "string"
          },
          "avatar": {
            "accept": [
              "image/png",
              "image/jpeg",
              "image/webp"
            ],
            "description": "A profile picture is a PNG, JPEG or WebP of at most 1 MB.",
            "maxSize": 1000000,
            "type": "blob"
          },
          "contactPolicy": {
            "description": "What visitors may do: send a message request, or nothing. Known values are requests and closed; a Ship reads any other value as closed.",
            "knownValues": [
              "requests",
              "closed"
            ],
            "maxLength": 64,
            "type": "string"
          },
          "displayName": {
            "maxGraphemes": 80,
            "maxLength": 640,
            "minGraphemes": 1,
            "type": "string"
          }
        },
        "required": [
          "displayName",
          "contactPolicy"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "space.ship.profile",
  "lexicon": 1
}
```
