# at.sovrn.space.emailCopy

- Kind: permission-set
- Authority: space.sovrn.at
- Lexicon: 1
- Published by [sovrn.at](https://lexicon.garden/identity/did:plc:54ba6vxrdbzi6nexczpk5xzb), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:54ba6vxrdbzi6nexczpk5xzb/at.sovrn.space.emailCopy)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:54ba6vxrdbzi6nexczpk5xzb/at.sovrn.space.emailCopy/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:54ba6vxrdbzi6nexczpk5xzb/at.sovrn.space.emailCopy/analytics)

## Permission set (`at.sovrn.space.emailCopy`)

Type: permission-set

### Shown at sign-in

- `title` (string): Keep a private copy of your email in your Atmosphere account
- `detail` (string): We will copy the email folders you choose into private storage on your Atmosphere account, and keep the copy up to date as mail arrives, moves, or is deleted. The copy isn't public and isn't shared with anyone, including other apps, unless you choose to later. This permission only lets us add, update, and remove that copy. You can stop at any time in your sovrn settings.

### Permissions

- `space` (permission): Create, update and delete at.sovrn.mail.mailbox and at.sovrn.mail.email records in your own at.sovrn.space.mailbox spaces, and create and delete the spaces themselves. From the Atproto Spaces proposal (0016); servers without it ignore space permissions.
  - Constraints: collection: at.sovrn.mail.mailbox, at.sovrn.mail.email, action: create, update, delete, manage: create, delete
  - Space type: `at.sovrn.space.mailbox`

### Asking for it (OAuth scope)

- `include:at.sovrn.space.emailCopy` (scope): A client asks for this permission set with this scope. The scope builder lists what the set grants.
  - Scope builder: `Open in the scope builder`

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "detail": "We will copy the email folders you choose into private storage on your Atmosphere account, and keep the copy up to date as mail arrives, moves, or is deleted. The copy isn't public and isn't shared with anyone, including other apps, unless you choose to later. This permission only lets us add, update, and remove that copy. You can stop at any time in your sovrn settings.",
      "permissions": [
        {
          "action": [
            "create",
            "update",
            "delete"
          ],
          "collection": [
            "at.sovrn.mail.mailbox",
            "at.sovrn.mail.email"
          ],
          "manage": [
            "create",
            "delete"
          ],
          "resource": "space",
          "spaceType": "at.sovrn.space.mailbox",
          "type": "permission"
        }
      ],
      "title": "Keep a private copy of your email in your Atmosphere account",
      "type": "permission-set"
    }
  },
  "id": "at.sovrn.space.emailCopy",
  "lexicon": 1
}
```
