# at.yeschef.auth

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

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:p43pnljxwa5pe4salene6poz/at.yeschef.auth)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:p43pnljxwa5pe4salene6poz/at.yeschef.auth/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:p43pnljxwa5pe4salene6poz/at.yeschef.auth/analytics)

## Permission set (`at.yeschef.auth`)

Type: permission-set

### Shown at sign-in

- `title` (string): Your Yes, Chef! recipes
- `detail` (string): Keep your private recipe library (recipes, collections and their photos) in a space only you and Yes, Chef! can read, and publish the recipes you choose to your public profile.

### Permissions

- `space` (permission): Read, create, update and delete at.yeschef.recipe and at.yeschef.collection records in the space self among your own at.yeschef.library spaces, and create the spaces themselves. From the Atproto Spaces proposal (0016); servers without it ignore space permissions.
  - Constraints: skey: self, collection: at.yeschef.recipe, at.yeschef.collection, action: read, create, update, delete, manage: create
  - Space type: `at.yeschef.library`
- `repo` (permission): Create, update and delete records in at.yeschef.recipe and at.yeschef.collection.
  - Collections: `at.yeschef.recipe`, `at.yeschef.collection`

### Asking for it (OAuth scope)

- `include:at.yeschef.auth` (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": "Keep your private recipe library (recipes, collections and their photos) in a space only you and Yes, Chef! can read, and publish the recipes you choose to your public profile.",
      "permissions": [
        {
          "action": [
            "read",
            "create",
            "update",
            "delete"
          ],
          "collection": [
            "at.yeschef.recipe",
            "at.yeschef.collection"
          ],
          "manage": [
            "create"
          ],
          "resource": "space",
          "skey": "self",
          "spaceType": "at.yeschef.library",
          "type": "permission"
        },
        {
          "collection": [
            "at.yeschef.recipe",
            "at.yeschef.collection"
          ],
          "resource": "repo",
          "type": "permission"
        }
      ],
      "title": "Your Yes, Chef! recipes",
      "type": "permission-set"
    }
  },
  "id": "at.yeschef.auth",
  "lexicon": 1
}
```
