# computer.localnetwork.people.invite

> An invite to join a performer's, party's or venue's space, keyed by the invitee's DID. Written by the Local Network root account for someone with people.manage, and deleted when they lose it. The invitee isn't a member until they accept, which replaces it with a computer.localnetwork.people.person record.

- Kind: record
- Record key: any
- Authority: people.localnetwork.computer
- Lexicon: 1
- Published by [localnetwork.computer](https://lexicon.garden/identity/did:plc:d42l64gsczg6qh2vo243xv5l), not the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:d42l64gsczg6qh2vo243xv5l/computer.localnetwork.people.invite)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:d42l64gsczg6qh2vo243xv5l/computer.localnetwork.people.invite/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:d42l64gsczg6qh2vo243xv5l/computer.localnetwork.people.invite/analytics)

## Record (`computer.localnetwork.people.invite`)

Type: record · key any

### Properties

- `capabilities` (ref, required)
  - Reference: `computer.localnetwork.people.defs#capabilities`
- `createdAt` (string · datetime, required)
- `expiresAt` (string · datetime)
- `invitedBy` (string · did, required)
- `message` (string)
  - Constraints: maxLength: 3000, maxGraphemes: 300
- `role` (ref, required)
  - Reference: `computer.localnetwork.people.defs#role`
- `staff` (boolean): Set when staff made it. It works whoever is in the space. One made by someone in the space stops working once they can't add people.
- `subject` (string · did, required)

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "An invite to join a performer's, party's or venue's space, keyed by the invitee's DID. Written by the Local Network root account for someone with people.manage, and deleted when they lose it. The invitee isn't a member until they accept, which replaces it with a computer.localnetwork.people.person record.",
      "key": "any",
      "record": {
        "properties": {
          "capabilities": {
            "ref": "computer.localnetwork.people.defs#capabilities",
            "type": "ref"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "expiresAt": {
            "format": "datetime",
            "type": "string"
          },
          "invitedBy": {
            "format": "did",
            "type": "string"
          },
          "message": {
            "maxGraphemes": 300,
            "maxLength": 3000,
            "type": "string"
          },
          "role": {
            "ref": "computer.localnetwork.people.defs#role",
            "type": "ref"
          },
          "staff": {
            "description": "Set when staff made it. It works whoever is in the space. One made by someone in the space stops working once they can't add people.",
            "type": "boolean"
          },
          "subject": {
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "subject",
          "role",
          "capabilities",
          "invitedBy",
          "createdAt"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "computer.localnetwork.people.invite",
  "lexicon": 1
}
```
