# computer.localnetwork.locallibraryPublishing

- Kind: permission-set
- Authority: 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.locallibraryPublishing)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:d42l64gsczg6qh2vo243xv5l/computer.localnetwork.locallibraryPublishing/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:d42l64gsczg6qh2vo243xv5l/computer.localnetwork.locallibraryPublishing/analytics)

## Permission set (`computer.localnetwork.locallibraryPublishing`)

Type: permission-set

### Shown at sign-in

- `title` (string): Publish from locallibrary
- `detail` (string): Publish and update your DJ profile, your sets, their recordings and your locallibrary settings, remove the sets you delete and their recordings, and ask Local Network's directory to read them again.

### Permissions

- `repo` (permission): Create and update records in computer.localnetwork.locallibrary.settings.
  - Constraints: action: create, update
  - Collections: `computer.localnetwork.locallibrary.settings`
- `repo` (permission): Create and update records in computer.localnetwork.dj.profile.
  - Constraints: action: create, update
  - Collections: `computer.localnetwork.dj.profile`
- `repo` (permission): Create, update and delete records in computer.localnetwork.dj.set.
  - Constraints: action: create, update, delete
  - Collections: `computer.localnetwork.dj.set`
- `repo` (permission): Create, update and delete records in computer.localnetwork.dj.recording.
  - Constraints: action: create, update, delete
  - Collections: `computer.localnetwork.dj.recording`
- `rpc` (permission): Call computer.localnetwork.directory.requestIndex on any service, by the reference implementation's rules. Servers that require a concrete audience grant it only with inheritAud and an aud on the scope.
  - Constraints: aud: *
  - Methods: `computer.localnetwork.directory.requestIndex`

### Asking for it (OAuth scope)

- `include:computer.localnetwork.locallibraryPublishing` (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": "Publish and update your DJ profile, your sets, their recordings and your locallibrary settings, remove the sets you delete and their recordings, and ask Local Network's directory to read them again.",
      "permissions": [
        {
          "action": [
            "create",
            "update"
          ],
          "collection": [
            "computer.localnetwork.locallibrary.settings"
          ],
          "resource": "repo",
          "type": "permission"
        },
        {
          "action": [
            "create",
            "update"
          ],
          "collection": [
            "computer.localnetwork.dj.profile"
          ],
          "resource": "repo",
          "type": "permission"
        },
        {
          "action": [
            "create",
            "update",
            "delete"
          ],
          "collection": [
            "computer.localnetwork.dj.set"
          ],
          "resource": "repo",
          "type": "permission"
        },
        {
          "action": [
            "create",
            "update",
            "delete"
          ],
          "collection": [
            "computer.localnetwork.dj.recording"
          ],
          "resource": "repo",
          "type": "permission"
        },
        {
          "aud": "*",
          "lxm": [
            "computer.localnetwork.directory.requestIndex"
          ],
          "resource": "rpc",
          "type": "permission"
        }
      ],
      "title": "Publish from locallibrary",
      "type": "permission-set"
    }
  },
  "id": "computer.localnetwork.locallibraryPublishing",
  "lexicon": 1
}
```
